← Back to context

Comment by NightMKoder

4 years ago

Could the sscanf bug also be a security issue? Most C strings are null terminated, but I could imagine using sscanf to read outside of bounds due to the null-seeking behavior on a non-null terminated array.

If it is an issue, I think it probably can’t be used for more than a DoS or a timing attack. That said after meltdown & co anything is possible.

It's already invalid to pass non-null terminated strings to functions that consume null-terminated strings.