pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://github.com/python/cpython/issues/142282

tps://github.githubassets.com/assets/repository-6ec84ae2261fecf8.css" /> winreg_QueryValueEx_impl doesn't use retSize · Issue #142282 · python/cpython · GitHub
Skip to content

winreg_QueryValueEx_impl doesn't use retSize #142282

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





      Check this box to remove all script contents from the fetched content.



      Check this box to remove all images from the fetched content.


      Check this box to remove all CSS styles from the fetched content.


      Check this box to keep images inefficiently compressed and original size.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy