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

_imp.get_frozen_object possible incorrect use ofPyBUF_READ #114685

Closed
Assignees
sobolevn
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@sobolevn

Description

@sobolevn

Bug report

It is documented thatPyBUF_READ should be used withmemoryview objects. But, it is used inPyObject_GetBuffer:

if (PyObject_GetBuffer(dataobj,&buf,PyBUF_READ)!=0) {

Other similar places that access.buf and.len just usePyBUF_SIMPLE, which I think we should use here as well.

I will send a PR.

Originally found by@serhiy-storchaka in#114669 (comment)

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-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