X Tutup
Skip to content

gh-95355: Check tokens[0] after allocating memory#95356

Merged
miss-islington merged 4 commits intopython:mainfrom
imzhuhl:pegen_tok_check
Jul 28, 2022
Merged

gh-95355: Check tokens[0] after allocating memory#95356
miss-islington merged 4 commits intopython:mainfrom
imzhuhl:pegen_tok_check

Conversation

@imzhuhl
Copy link
Copy Markdown
Contributor

@imzhuhl imzhuhl commented Jul 28, 2022

#95355

Automerge-Triggered-By: GH:pablogsal

@ghost
Copy link
Copy Markdown

ghost commented Jul 28, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link
Copy Markdown

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bedevere-bot
Copy link
Copy Markdown

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@CharlieZhao95
Copy link
Copy Markdown
Contributor

Good find.
p->tokens is a 2-dimensional pointer to Token *, p->tokens[0] is a pointer to Token structure.
In my opinion, it does need to be modified.

…e-95355.yN4XVk.rst

Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
@pablogsal pablogsal added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Jul 28, 2022
@pablogsal
Copy link
Copy Markdown
Member

LGTM Good catch!

@miss-islington
Copy link
Copy Markdown
Contributor

Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit b946f52 into python:main Jul 28, 2022
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @imzhuhl for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link
Copy Markdown

GH-95367 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 28, 2022
pythonGH-95355

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit b946f52)

Co-authored-by: Honglin Zhu <zhuhonglin.zhl@alibaba-inc.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 28, 2022
pythonGH-95355

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit b946f52)

Co-authored-by: Honglin Zhu <zhuhonglin.zhl@alibaba-inc.com>
@bedevere-bot
Copy link
Copy Markdown

GH-95368 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 28, 2022
miss-islington added a commit that referenced this pull request Jul 28, 2022
GH-95355

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit b946f52)

Co-authored-by: Honglin Zhu <zhuhonglin.zhl@alibaba-inc.com>
miss-islington added a commit that referenced this pull request Jul 28, 2022
GH-95355

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit b946f52)

Co-authored-by: Honglin Zhu <zhuhonglin.zhl@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

X Tutup