Skip to content

gh-142560: bytearray: prevent UAF in search-like methods by exporting self buffer #177521

gh-142560: bytearray: prevent UAF in search-like methods by exporting self buffer

gh-142560: bytearray: prevent UAF in search-like methods by exporting self buffer #177521

Triggered via pull request December 18, 2025 14:35
Status Cancelled
Total duration 3m 34s
Artifacts 1

build.yml

on: pull_request
Change detection  /  Create context from changed files
14s
Change detection / Create context from changed files
Matrix: build-android
Matrix: Address sanitizer
Matrix: build-macos
Matrix: build-san
Matrix: Ubuntu SSL tests with AWS-LC
Matrix: Ubuntu SSL tests with OpenSSL
Matrix: build-ubuntu
Matrix: build-windows-msi
Waiting for pending jobs
Matrix: build-windows
Matrix: CIFuzz
Docs  /  Docs
1m 39s
Docs / Docs
Docs  /  Doctest
1m 21s
Docs / Doctest
Docs  /  Check EPUB
1m 54s
Docs / Check EPUB
Check if Autoconf files are up to date
25s
Check if Autoconf files are up to date
Check if generated files are up to date
1m 35s
Check if generated files are up to date
iOS
57s
iOS
WASI  /  build and test
59s
WASI / build and test
Hypothesis tests on Ubuntu
1m 31s
Hypothesis tests on Ubuntu
Cross build Linux
1m 35s
Cross build Linux
All required checks pass
5s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

107 errors and 56 warnings
Android (x86_64)
Process completed with exit code 1.
iOS
Process completed with exit code 1.
Windows (free-threading) / Build and test (x64)
Process completed with exit code 1.
Windows (free-threading) / Build and test (x64): Objects/bytearrayobject.c#L1803
syntax error: missing ';' before '{' [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Windows (free-threading) / Build and test (x64): Objects/bytearrayobject.c#L1802
redefinition of formal parameter 'bytearray_split_impl' [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
WASI / build and test
Process completed with exit code 1.
Android (aarch64)
Process completed with exit code 1.
Docs / Doctest
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 1.1.1w)
Process completed with exit code 2.
Windows (free-threading) / Build and test (arm64)
Process completed with exit code 1.
Windows (free-threading) / Build and test (arm64): Objects/bytearrayobject.c#L1803
syntax error: missing ';' before '{' [C:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Windows (free-threading) / Build and test (arm64): Objects/bytearrayobject.c#L1802
redefinition of formal parameter 'bytearray_split_impl' [C:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.4.3)
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.2.6)
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.3.5)
Process completed with exit code 2.
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.0.18)
Process completed with exit code 2.
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2061
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2051
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2041
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2031
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2008
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L1967
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L1927
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L1894
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L1854
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L1803
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L2061
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L2051
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L2041
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L2031
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L2008
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L1967
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L1927
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L1894
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L1854
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Cross build Linux: Objects/bytearrayobject.c#L1803
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Check if generated files are up to date
Process completed with exit code 2.
Docs / Docs
Process completed with exit code 2.
Windows / Build and test (Win32)
Process completed with exit code 1.
Windows / Build and test (arm64)
Process completed with exit code 1.
Windows / Build and test (arm64): Objects/bytearrayobject.c#L1803
syntax error: missing ';' before '{' [C:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Windows / Build and test (arm64): Objects/bytearrayobject.c#L1802
redefinition of formal parameter 'bytearray_split_impl' [C:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Address sanitizer (ubuntu-24.04)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2061
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2051
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2041
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2031
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2008
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L1967
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L1927
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L1894
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L1854
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L1803
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.5.4)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.5.4)
The operation was canceled.
Docs / Check EPUB
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Docs / Check EPUB
The operation was canceled.
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)
The operation was canceled.
Sanitizers / TSan (free-threading)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Sanitizers / TSan (free-threading)
The operation was canceled.
Sanitizers / TSan
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Sanitizers / TSan
The operation was canceled.
macOS (free-threading) / build and test (macos-14)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
macOS (free-threading) / build and test (macos-14)
The operation was canceled.
Sanitizers / UBSan
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Sanitizers / UBSan
The operation was canceled.
Ubuntu / build and test (ubuntu-24.04)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2061
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2051
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2041
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2031
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2008
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L1967
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L1927
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L1894
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L1854
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L1803
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
macOS / build and test (macos-14)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
macOS / build and test (macos-14)
The operation was canceled.
macOS / build and test (macos-15-intel)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
macOS / build and test (macos-15-intel)
The operation was canceled.
Windows / Build and test (x64)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Windows / Build and test (x64)
The operation was canceled.
Ubuntu SSL tests with AWS-LC (ubuntu-24.04, 1.55.0)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu SSL tests with AWS-LC (ubuntu-24.04, 1.55.0)
The operation was canceled.
Ubuntu / build and test (ubuntu-24.04-arm)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu / build and test (ubuntu-24.04-arm)
The operation was canceled.
Ubuntu (free-threading) / build and test (ubuntu-24.04)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu (free-threading) / build and test (ubuntu-24.04)
The operation was canceled.
Ubuntu (bolt) / build and test (ubuntu-24.04)
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Ubuntu (bolt) / build and test (ubuntu-24.04)
The operation was canceled.
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
All required checks pass
Process completed with exit code 1.
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Tests
Canceling since a higher priority waiting request for Tests-fatelei-issue-142495 exists
Hypothesis tests on Ubuntu
No files were found with the provided path: /home/runner/work/cpython/cpython-builddir/.hypothesis/examples/. No artifacts will be uploaded.
Hypothesis tests on Ubuntu: Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Hypothesis tests on Ubuntu: Include/methodobject.h#L98
excess elements in scalar initializer
Hypothesis tests on Ubuntu: Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Hypothesis tests on Ubuntu: Objects/clinic/bytearrayobject.c.h#L1765
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2774
braces around scalar initializer
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Hypothesis tests on Ubuntu: Include/methodobject.h#L98
excess elements in scalar initializer
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2773
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Hypothesis tests on Ubuntu: Objects/bytearrayobject.c#L2773
braces around scalar initializer
Cross build Linux: Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Cross build Linux: Include/methodobject.h#L98
excess elements in scalar initializer
Cross build Linux: Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Cross build Linux: Objects/clinic/bytearrayobject.c.h#L1765
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Cross build Linux: Objects/bytearrayobject.c#L2774
braces around scalar initializer
Cross build Linux: Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Cross build Linux: Include/methodobject.h#L98
excess elements in scalar initializer
Cross build Linux: Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Cross build Linux: Objects/bytearrayobject.c#L2773
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Cross build Linux: Objects/bytearrayobject.c#L2773
braces around scalar initializer
Address sanitizer (ubuntu-24.04): Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Address sanitizer (ubuntu-24.04): Include/methodobject.h#L98
excess elements in scalar initializer
Address sanitizer (ubuntu-24.04): Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Address sanitizer (ubuntu-24.04): Objects/clinic/bytearrayobject.c.h#L1765
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2774
braces around scalar initializer
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Address sanitizer (ubuntu-24.04): Include/methodobject.h#L98
excess elements in scalar initializer
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2773
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Address sanitizer (ubuntu-24.04): Objects/bytearrayobject.c#L2773
braces around scalar initializer
macOS (free-threading) / build and test (macos-14)
Already linked: /opt/homebrew/Cellar/tcl-tk/9.0.3
macOS (free-threading) / build and test (macos-14)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS (free-threading) / build and test (macos-14)
gdbm 1.26 is already installed and up-to-date. To reinstall 1.26, run: brew reinstall gdbm
macOS (free-threading) / build and test (macos-14)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS (free-threading) / build and test (macos-14)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf
Ubuntu / build and test (ubuntu-24.04): Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Ubuntu / build and test (ubuntu-24.04): Include/methodobject.h#L98
excess elements in scalar initializer
Ubuntu / build and test (ubuntu-24.04): Objects/clinic/bytearrayobject.c.h#L1765
excess elements in scalar initializer
Ubuntu / build and test (ubuntu-24.04): Objects/clinic/bytearrayobject.c.h#L1765
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2774
braces around scalar initializer
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Ubuntu / build and test (ubuntu-24.04): Include/methodobject.h#L98
excess elements in scalar initializer
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2773
excess elements in scalar initializer
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2773
initialization of ‘PyMethodDef *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
Ubuntu / build and test (ubuntu-24.04): Objects/bytearrayobject.c#L2773
braces around scalar initializer
macOS / build and test (macos-14)
Already linked: /opt/homebrew/Cellar/tcl-tk/9.0.3
macOS / build and test (macos-14)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-14)
gdbm 1.26 is already installed and up-to-date. To reinstall 1.26, run: brew reinstall gdbm
macOS / build and test (macos-14)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS / build and test (macos-14)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf
macOS / build and test (macos-15-intel)
Already linked: /usr/local/Cellar/tcl-tk/9.0.3
macOS / build and test (macos-15-intel)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-15-intel)
gdbm 1.26 is already installed and up-to-date. To reinstall 1.26, run: brew reinstall gdbm
macOS / build and test (macos-15-intel)
xz 5.8.1 is already installed and up-to-date. To reinstall 5.8.1, run: brew reinstall xz
macOS / build and test (macos-15-intel)
pkgconf 2.5.1 is already installed and up-to-date. To reinstall 2.5.1, run: brew reinstall pkgconf

Artifacts

Produced during runtime
Name Size Digest
UBSan-logs-default
387 Bytes
sha256:8c9eb3d1e3eb302550ddc195b7c4de109116ac61cdec9f78fe53680180442414