You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e6204dc
Browse filesBrowse the repository at this point in the historyBrowse files
Fix invalid oid handling in BlobIO, Reference, RefdbBackend and ODB backends
Invalid oid arguments were silently ignored or left a Python exception set,
which could produce wrong results, SystemError, or crashes. Now:
- Blob__write_to_queue, Reference_init, RefdbBackend_write/delete check
py_oid_to_git_oid return value and propagate the Python exception.
- Custom ODB backend callbacks return GIT_EUSER on invalid oids.
- Odb_as_iter and OdbBackend_as_iter propagate GIT_EUSER errors without goto.
- OdbBackend_read_prefix/exists_prefix preserve Python exceptions from
custom backends.
Regression tests added.
Fixes#1478
Assisted-by: Kimi Code
0 commit comments