[Bug 9714] New: MapViewOfFile with write permissions should not succeed on a read-only file mapping
http://bugs.winehq.org/show_bug.cgi?id=9714 Summary: MapViewOfFile with write permissions should not succeed on a read-only file mapping Product: Wine Version: 0.9.38. Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: wine-kernel AssignedTo: wine-bugs(a)winehq.org ReportedBy: silverblade_uk(a)hotmail.com I had duplicated some code in one of my programs and accidentally forgot to change the "desired access" for the MapViewOfFile call, despite having changed this in the OpenFileMapping call. The code below *incorrectly* succeeds on WINE but fails on Windows XP. === EXAMPLE === HANDLE h; void* m; h = OpenFileMapping(FILE_MAP_READ, FALSE, "Global\Foo"); m = MapViewOfFile(h, FILE_MAP_WRITE, 0, 0, 0); === END EXAMPLE === Basically I was opening the mapped file READ-ONLY, but was then trying to create a writable mapping to it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9714 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #1 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2007-09-19 06:11:32 --- I can confirm this bug. I sent a test case that demonstrates this problem to wine-patches. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=9714 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2008-04-15 00:58:01 --- Is this still an issue in current (0.9.59 or newer) wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=9714 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2008-10-22 14:32:27 --- Abandoned. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=9714 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Austin English <austinenglish(a)gmail.com> 2008-10-22 14:35:56 --- Closing abandoned. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=9714 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|ABANDONED | --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> 2008-11-05 12:45:50 --- Still a valid bug, it has a test case. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=9714 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> 2008-11-06 09:25:38 --- Fixed by 5e2ed6bfe94eb322efe891c07aa8e58b125f36c2. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=9714 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> 2008-11-07 10:45:38 --- Closing bugs fixed in 1.1.8. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
participants (1)
-
wine-bugs@winehq.org