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

potential nullptr dereference + use of uninitialized memory in fileutils #102281

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

Description

@maxbachmann

Bug report

cpython/Python/fileutils.c

Lines 2161 to 2162 in6daf42b

join_relfile(filename,bufsize,dirname,relfile);
returnfilename;
can lead to use of uninitialized memory whenjoin_relfile fails.

cpython/Python/fileutils.c

Lines 2197 to 2199 in6daf42b

_Py_normpath(wchar_t*path,Py_ssize_tsize)
{
if (!path[0]||size==0) {
in combination with
path2=_Py_normpath(_Py_join_relfile(path,resolved),-1);

leads to a nullptr dereference.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    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