8000 gh-111178: fix UBSan failures in `Modules/_struct.c` by picnixz · Pull Request #129793 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111178: fix UBSan failures in Modules/_struct.c #129793

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

Merged
merged 10 commits into from
Feb 23, 2025
Prev Previous commit
revert a space that increased the diff and was more inconsistent
  • Loading branch information
picnixz committed Feb 23, 2025
commit 9f13d2817cdf1258a0be7c1613c84171289a0ba1
2 changes: 1 addition & 1 deletion Modules/_struct.c
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ unpackiter_iternext(PyObject *op)
}
assert(self->index + self->so->s_size <= self->buf.len);
result = s_unpack_internal(self->so,
(char *)self->buf.buf + self->index,
(char*)self->buf.buf + self->index,
state);
self->index += self->so->s_size;
return result;
Expand Down
Loading
0