timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

misc debugging #254

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago
timotheecour commented 3 years ago

see https://github.com/nim-lang/Nim/pull/16712#issuecomment-762011359 which worked

timotheecour commented 3 years ago

Using _FORTIFY_SOURCE will protect you like that for other cases too, and for open() there is one more case: open can be called either with 2 or 3 arguments, not more, seen in file /usr/include/bits/fcntl2.h as:

https://stackoverflow.com/a/56201991/1426932