Open timotheecour opened 4 years ago
see https://github.com/nim-lang/Nim/pull/16712#issuecomment-762011359 which worked
-O1 -D_FORTIFY_SOURCE=2
https://fedoraproject.org/wiki/Security_Features?rd=Security/Features#Compile_Time_Buffer_Checks_.28FORTIFY_SOURCE.29Using _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: