|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
Re: printf bug - beware!
Nice catch. The same problem occurs if you do this:
char tempBuf[] = "Some string >=40 characters..."; printf("%s", tempBuf); The error is another strcpypgm2ram copied into a 40 char buffer without checking the length of the string in program memory. printf_lib.c line 203 (unmodified version) Basically anywhere in the printf libraries where strcpypgm2ram is used (which is quite often) there is a possibility for corruption. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| printf and newlines | Jeff McCune | Programming | 5 | 21-02-2004 21:09 |
| Printf warning during compile? | actorindp | Programming | 4 | 20-02-2004 17:02 |
| printf isn't printf-ing. Help! | Meandmyself | Programming | 14 | 15-02-2004 16:27 |
| clear printf box? | telefragger2000 | Programming | 6 | 05-02-2004 17:40 |
| Last Call for bug reports | rbayer | Programming | 0 | 08-01-2003 02:48 |