Skip to content

Conversation

@hundertzwei
Copy link

from gcc-12 up, this modul will terminated with *** buffer overflow detected ***. That's because the sprintf further down will copy not only the string, but also a linefeed and a terminating null-byte at the end of the buffer. This is two times off by one.

from gcc-12 up, this modul will terminated with *** buffer overflow detected ***.
That's because the sprintf further down will copy not only the string, but also a linefeed and a terminating null-byte at the end of the buffer.
This is two times off by one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant