zzril / aula

Audio programming language and interpreter
MIT License
0 stars 0 forks source link

Buffer overread when printing out token content in error messages #17

Closed zzril closed 1 day ago

zzril commented 1 day ago

The token buffers are not 0-terminated, currently resulting in a buffer-overread when an error message also prints out the content of a token.

While we could provide a separate function to correctly read out the content of a token, it is probably best practice to have the content always 0-terminated.