Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

winreg_QueryValueEx_impl doesn't use retSize #142282

Closed
Labels
OS-windowsinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@youknowone

Description

@youknowone

Bug report

Bug description:

The actual data size in buffer is not bufSize, but retSize.

https://github.com/python/cpython/blob/v3.14.1/PC/winreg.c#L1657-L1684

This is not causing an actual bug because Reg2Py is additionally checking the null-terminated string length.
I could cause actual bug:https://github.com/python/cpython/pull/142283/files#r2591736333

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp