[Bug 1589] New: sscanf assigns incorrect value to %n variable

Wine Bugs wine-bugs at winehq.com
Fri Jul 11 10:56:44 CDT 2003


http://bugs.winehq.com/show_bug.cgi?id=1589

           Summary: sscanf assigns incorrect value to %n variable
           Product: Wine
           Version: 20030709
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: wine-misc
        AssignedTo: wine-bugs at winehq.com
        ReportedBy: tim.ruehsen at openmediasystem.de


int	pos=0; 
char	s1[32], s2[32]; 
 
sscanf("136 I30 I40 hello","%*u %s %s %n",s1,s2,&pos); 
// now pos=2! but it should be 12! 
 
this comes out when linking the app dynamically on Windows (XP) and running 
with wine on Linux (SuSE 8.1). 
After linking statically it works correctly (pos=12). 
 
This may break any dynamically linked application that relies on %n.

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list