WineHQ
Bug Tracking Database – Bug 35346

 Bugzilla

 

Last modified: 2014-01-17 13:58:18 UTC  

sscanf clears first unmatched string arg

Bug 35346 - sscanf clears first unmatched string arg
sscanf clears first unmatched string arg
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: msvcrt
1.7.2
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
: download, testcase
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-01-08 18:32 UTC by Josh Vanderhoof
Modified: 2014-01-17 13:58 UTC (History)
1 user (show)

See Also:
Regression SHA1:
Fixed by SHA1: 638c8e3847212f1d5399643c30fddcf7afc8c6ee
Distribution: ---
Staged patchset:


Attachments
sscanf test (750 bytes, text/plain)
2014-01-08 18:32 UTC, Josh Vanderhoof
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Vanderhoof 2014-01-08 18:32:41 UTC
Created attachment 47152 [details]
sscanf test

When sscanf fails on a string match, it clears the next matching string argument.  I'm not sure if that's undefined in the C standard but it's not how most scanf functions work.
Comment 1 Bruno Jesus 2014-01-08 20:09:13 UTC
Confirming in wine 1.7.10.

Results from XP:

C:\>sscanftest.exe
count=2 a="foo" b="bar" c="default baz"
Comment 2 Piotr Caban 2014-01-16 16:16:15 UTC
Fixed by commit 638c8e3847212f1d5399643c30fddcf7afc8c6ee.
Comment 3 Alexandre Julliard 2014-01-17 13:58:18 UTC
Closing bugs fixed in 1.7.11.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers