| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
I think this should get a news entry.
Sorry, something went wrong.
Added the news entry, although I think we can skip it since the changes are only in very rare paths. |
Sorry, something went wrong.
That's my assesment too. It's technically a user-visible change, but that user needs to squint really hard. |
Sorry, something went wrong.
| @@ -0,0 +1 @@ | |||
| Fix refleak and null pointer deref in unusual error path of :mod:`datetime`. | |||
There was a problem hiding this comment.
Please remove it, users should not be impacted by this change. The error case is very unlikely.
Sorry, something went wrong.
There was a problem hiding this comment.
I suggested adding it since this PR covers several cases increasing the likelyhood of one of them being hit. If you think it is better to remove it, I don't mind.
Sorry, something went wrong.
There was a problem hiding this comment.
Usually, we don't document such fix for an unlikely corner case.
PyLong_FromLong() can only fail if the system has no more free memory.
datetime.datetime.astimezone() reads freed memory, but it only occurs if utcoffset() returns the wrong type. It seems like nobody reported the issue (with a reproducer), so it sounds unlikely to crash in practice (reading freed memory just works in the common case).
Sorry, something went wrong.
Co-authored-by: Victor Stinner <vstinner@python.org>
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot ARM64 macOS 3.x (tier-2) has failed when building commit 0eaf260. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/725/builds/12928 Failed tests:
Summary of the results of the build (if available): == Click to see traceback logsremote: Enumerating objects: 4, done.
remote: Counting objects: 25% (1/4)
remote: Counting objects: 50% (2/4)
remote: Counting objects: 75% (3/4)
remote: Counting objects: 100% (4/4)
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 25% (1/4)
remote: Compressing objects: 50% (2/4)
remote: Compressing objects: 75% (3/4)
remote: Compressing objects: 100% (4/4)
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 1 (delta 0), pack-reused 0 (from 0)
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to '0eaf260d79f8547b02d8e80d760b11e821928fde'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 0eaf260d79f gh-145376: Fix refleak and null pointer deref in unusual error path of datetime module (GH-145476)
Switched to and reset branch 'main'
make: *** [buildbottest] Error 2 |
Sorry, something went wrong.
…path of datetime module (pythonGH-145476)
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.