You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's writing a 14-chars-long string "\DosDevices\X:" into a 14-chars-long buffer. However, wsprintfA appends a termincating null character to the string, so the buffer actually needs a capacity of at least 15 chars, otherwise it's a buffer overflow at runtime.
To be honest, it's not likely that it will cause any problem in real world. But an address sanitizer, which I often enabled in debug builds, will catch such out-of-bound access and crash the program.
The text was updated successfully, but these errors were encountered:
Here in
aedevice.cpp
It's writing a 14-chars-long string "\DosDevices\X:" into a 14-chars-long buffer. However,
wsprintfA
appends a termincating null character to the string, so the buffer actually needs a capacity of at least 15 chars, otherwise it's a buffer overflow at runtime.To be honest, it's not likely that it will cause any problem in real world. But an address sanitizer, which I often enabled in debug builds, will catch such out-of-bound access and crash the program.
The text was updated successfully, but these errors were encountered: