[Bug 44290] New: Possible access to unintended field in "wine/dlls/winmm/ mmio.c" line 788
wine-bugs at winehq.org
wine-bugs at winehq.org
Thu Jan 4 04:10:43 CST 2018
https://bugs.winehq.org/show_bug.cgi?id=44290
Bug ID: 44290
Summary: Possible access to unintended field in
"wine/dlls/winmm/mmio.c" line 788
Product: Wine
Version: unspecified
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: winmm&mci
Assignee: wine-bugs at winehq.org
Reporter: petrum at gmail.com
Distribution: ---
While experimenting with a CodeSonar plugin we develop, we noticed a
potential bug in file "wine/dlls/winmm/mmio.c"" line 788 function mmioRead
size = MMIO_GrabNextBuffer(wm, TRUE);
if (size <= 0) break;
if (size > cch) size = cch;
memcpy(pch, wm->info.pchBuffer, size);
wm->info.pchNext += size; //HERE
pch += size;
cch -= size;
count += size;
Shouldn't wm->info.pchBuffer be incremented at the mentioned line (instead of
wm->info.pchNext)?
Thanks,
Petru Florin Mihancea
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list