This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年04月18日 22:42 by christian.heimes, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| import_reinit_fatal.patch | christian.heimes, 2015年04月18日 22:42 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg241462 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2015年04月18日 22:42 | |
_PyImport_ReInitLock() doesn't check the return value of PyThread_allocate_lock(). A failed lock allocation can either lead to a NULL pointer dereference or to race conditions caused by a missing import lock. As there is no way to recover from a failed lock allication I recommend to abort with a fatal error. CID 1295025 (#1 of 1): Dereference after null check (FORWARD_NULL) var_deref_model: Passing null pointer import_lock to PyThread_acquire_lock, which dereferences it. |
|||
| msg241517 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2015年04月19日 14:18 | |
LGTM |
|||
| msg241547 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年04月19日 19:15 | |
New changeset d70995cf44b3 by Christian Heimes in branch '2.7': Issue #23998: PyImport_ReInitLock() now checks for lock allocation error https://hg.python.org/cpython/rev/d70995cf44b3 New changeset 7d7bf5c34d7e by Christian Heimes in branch '3.3': Issue #23998: PyImport_ReInitLock() now checks for lock allocation error https://hg.python.org/cpython/rev/7d7bf5c34d7e New changeset e0bd083fc9c1 by Christian Heimes in branch '3.4': Issue #23998: PyImport_ReInitLock() now checks for lock allocation error https://hg.python.org/cpython/rev/e0bd083fc9c1 New changeset 7ae8fd62d743 by Christian Heimes in branch 'default': Issue #23998: PyImport_ReInitLock() now checks for lock allocation error https://hg.python.org/cpython/rev/7ae8fd62d743 |
|||
| msg241656 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2015年04月20日 14:52 | |
Thanks, Brett! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:15 | admin | set | github: 68186 |
| 2015年04月20日 14:52:14 | christian.heimes | set | status: open -> closed resolution: fixed messages: + msg241656 stage: commit review -> resolved |
| 2015年04月19日 19:15:52 | python-dev | set | nosy:
+ python-dev messages: + msg241547 |
| 2015年04月19日 14:18:02 | brett.cannon | set | nosy:
+ brett.cannon messages: + msg241517 assignee: christian.heimes stage: patch review -> commit review |
| 2015年04月18日 22:42:35 | christian.heimes | create | |