Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: access null pointer in src/net #1453

Merged
merged 2 commits into from
May 8, 2023

Conversation

gitveg
Copy link
Contributor

@gitveg gitveg commented May 7, 2023

在原来的代码中,第153行的对pfe是否为空指针的判断应当提前,因为在第108行中的if判断中已经使用了指针pfe。
为防止空指针引用,应将第153行的空指针判断放在整个if判断的最前面

@gitveg gitveg marked this pull request as ready for review May 7, 2023 04:38
@gitveg gitveg closed this May 7, 2023
@gitveg gitveg reopened this May 7, 2023
@chejinge chejinge closed this May 8, 2023
@chejinge chejinge reopened this May 8, 2023
@AlexStocks AlexStocks changed the title fix: access null pointer fix: access null pointer in src/net May 8, 2023
@AlexStocks AlexStocks merged commit 50f5c83 into OpenAtomFoundation:unstable May 8, 2023
13 checks passed
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* fix: access null pointer

* Update worker_thread.cc
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.

None yet

3 participants