Giter Club home page Giter Club logo

Comments (5)

derekbruening avatar derekbruening commented on July 28, 2024

From [email protected] on May 03, 2011 06:02:22

Update: as of r273 , it still reports the uninit read and looks like it thinks the '\0' is uninitialized:
UNINITIALIZED READ: reading 0x00154945-0x00154946 1 byte(s)
while
::GlobalLock returns 0x00154940 -> "ASCII\0"

from drmemory.

derekbruening avatar derekbruening commented on July 28, 2024

From [email protected] on May 03, 2011 06:04:22

... and ::GlobalSize() returns 6

from drmemory.

derekbruening avatar derekbruening commented on July 28, 2024

From [email protected] on May 03, 2011 06:30:22

(on XP 32-bit)
::OpenClipboard results in WARNING: unhandled system call #0x11d5
::EmptyClipboard results in WARNING: unhandled system call #0x116d
::SetClipboardData results in WARNING: unhandled system call #0x114f WARNING: unhandled system call #0x11fc
::CloseClipboard results in WARNING: unhandled system call #0x11fc WARNING: unhandled system call #0x114b
::GetClipboardData -> WARNING: unhandled system call #0x1185 WARNING: unhandled system call #0x1156 WARNING: unhandled system call #0x1156

These guys look like win32k system calls http://www.woodmann.com/forum/archive/index.php/t-10295.html 114b: bf8f85a7 NtUserCloseClipboard 0
114f: bf8ea924 NtUserConvertMemHandle 2
1156: bf8f9a46 NtUserCreateLocalMemHandle 4
116d: bf8ea5a9 NtUserEmptyClipboard 0
1185: bf8f9881 NtUserGetClipboardData 2
11d5: bf8f8524 NtUserOpenClipboard 2
11fc: bf8ea848 NtUserSetClipboardData 3

Looks like we're not handling some of these correctly (off-by-one error?)

Derek, can you please take a look?

From drmemory\syscall_windows.c:
/* FIXME PR 406349: win32k.sys syscalls! currently doing memcmp to see what was written
-> could it be that GlobalLock writes all 6 bytes but the last \0 byte was already \0 and memcmp have not seen this?

Owner: [email protected]
Cc: [email protected]

from drmemory.

derekbruening avatar derekbruening commented on July 28, 2024

From [email protected] on May 03, 2011 07:09:25

I turned off -syscall_sentinels b/c it's risky. As an experiment try turning it on and these may go away b/c drmem will see the 0 being written.

I am in the process of adding handling for non-ntdll syscall wrappers, once done w/ ioctls.

from drmemory.

derekbruening avatar derekbruening commented on July 28, 2024

From [email protected] on July 15, 2011 13:02:39

This issue was closed by revision r397 .

Status: Fixed

from drmemory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.