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
As operand in context was calculating between two labels term_free_cmd_end - term_free_cmd(33 bytes, when maximum size was 32) - so this situation is possible for another cases too.
Simplest way move away issue - making this constant larger:
This is something I can work with. Too many people are dumping their git repo URL to me, stating 'this doesn't work'. Combine this with a platform I'm not supporting (which I get lots of questions about, even when I'm not releasing binaries for these), not a good combination.
I can reproduce this issue. It happens during the operand stage, when the operand itself has a maximum of LINEMAX characters at read, while the buffer is defined as MAXNAMELENGTH. I'll fix this in the next release.
Issue #83 wasn't platform specific but was common for all platforms - buffer overrun on strcpy.
In my case buffer overrun happens here:
agon-ez80asm/src/assemble.c
Line 357 in fbc45c5
As operand in context was calculating between two labels
term_free_cmd_end - term_free_cmd
(33 bytes, when maximum size was 32) - so this situation is possible for another cases too.Simplest way move away issue - making this constant larger:
agon-ez80asm/src/config.h
Line 33 in fbc45c5
Best way - check string size before copying it to resulting buffer(and increase buffer size too).
The text was updated successfully, but these errors were encountered: