Re: [Sdcc-user] vargs vsprintf overflow

2022-04-13 Thread Philipp Klaus Krause
Am 13.04.22 um 09:02 schrieb Philipp Klaus Krause: Am 13.04.22 um 03:18 schrieb David Tulloh via Sdcc-user: I noticed this in the documentation, http://sdcc.sourceforge.net/doc/sdccman.pdf 4.6.9 Known Bugs 4.6.9.1 Function arguments Functions with variable argument lists (like printf) are not

Re: [Sdcc-user] vargs vsprintf overflow

2022-04-13 Thread Philipp Klaus Krause
Am 13.04.22 um 03:18 schrieb David Tulloh via Sdcc-user: I noticed this in the documentation, http://sdcc.sourceforge.net/doc/sdccman.pdf 4.6.9 Known Bugs 4.6.9.1 Function arguments Functions with variable argument lists (like printf) are not yet supported. However vsprintf seems to be provided

[Sdcc-user] vargs vsprintf overflow

2022-04-12 Thread David Tulloh via Sdcc-user
Hi SDCC, I have some code running on a 8051 processor compiled with SDCC 3.5.0 and the --model-medium memory flag. The code contains a global variable, session, which is occasionally being overwritten. The memory map suggests this is coming from a call to vsprintf. We call this from a custom var