c++.rtl - sscanf bug for non-ascii7 chars
- Jan Chladek (16/16) Aug 26 2008 Hi, I found this bug in sscanf (dmc 8.50):
Hi, I found this bug in sscanf (dmc 8.50): If scanned string contains characters with ASCII >=0x80 and format pattern use "%[^...]" conversion then program crashes with exception code 0xc0000005 in the ssanf function. Jan ---------------------------- See sample #include <stdio.h> int main( int argc, char * argv[] ) { char text[ 100 ]; char *buffer="non-asci:'\x81'\r\n"; sscanf( buffer, "%[^\n]\n", text ); printf( "read: %s\n", text ); return 0; } ----------------------------
Aug 26 2008