Anonymous user
Talk:Longest string challenge: Difference between revisions
→bounds checking in C: A buffer overflow is a security violation....
(→Comments / Feedback: I agree; "gimmick" is a poor word.) |
(→bounds checking in C: A buffer overflow is a security violation....) |
||
Line 247:
fgets(buf, 1, stdin);
}</lang> --[[User:Rdm|Rdm]] 17:10, 15 August 2011 (UTC)
: A buffer overflow is a security violation. Input, that overflows the buffer, might overwrite the return address and hijack control of the program. A correct program would check bounds and report an error (or realloc() a longer buffer). Does anyone know how to check bounds without any comparison operators? --[[User:Kernigh|Kernigh]] 21:34, 15 August 2011 (UTC)
== Boring solution v. restrictions ==
|