Fix qemu_strtosz() read-out-of-bounds
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest19 patches 5 repliesIn review
- v219 patches 28 repliesSuperseded
- v111 patches 13 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | test-cutils: Avoid g_assert in unit teststests/ | +162 | 0 replies | |
| 2/19 | test-cutils: Use g_assert_cmpuint where appropriatetests/ | +74 | 0 replies | |
| 3/19 | test-cutils: Test integral qemu_strto* value on failurestests/ | +51 | 0 replies | |
| 4/19 | test-cutils: Test more integer corner casestests/ | +864 | 2 replies | |
| 5/19 | cutils: Fix wraparound parsing in qemu_strtouitests/ util/ | +28 | 1 reply | |
| 6/19 | cutils: Document differences between parse_uint and qemu_strtou64util/ | +12 | 0 replies | |
| 7/19 | cutils: Adjust signature of parse_uint[_full]audio/ block/ block/ +9 more | +85 | 0 replies | |
| 8/19 | cutils: Allow NULL endptr in parse_uint()tests/ util/ | +28 | 0 replies | |
| 9/19 | test-cutils: Add coverage of qemu_strtodtests/ | +512 | 0 replies | |
| 10/19 | test-cutils: Prepare for upcoming semantic change in qemu_strtosztests/ | +27 | 0 replies | |
| 11/19 | test-cutils: Refactor qemu_strtosz tests for less boilerplatetests/ | +100 | 0 replies | |
| 12/19 | cutils: Allow NULL str in qemu_strtosztests/ util/ | +10 | 0 replies | |
| 13/19 | numa: Check for qemu_strtosz_MiB errorhw/ | +9 | 0 replies | |
| 14/19 | test-cutils: Add more coverage to qemu_strtosztests/ | +129 | 0 replies | |
| 15/19 | cutils: Set value in all qemu_strtosz* error pathstests/ util/ | +63 | 0 replies | |
| 16/19 | cutils: Set value in all integral qemu_strto* error pathstests/ util/ | +38 | 0 replies | |
| 17/19 | cutils: Use parse_uint in qemu_strtosz for negative rejectiontests/ tests/ tests/ +2 more | +9 | 0 replies | |
| 18/19 | cutils: Improve qemu_strtod* error pathstests/ util/ | +55 | 0 replies | |
| 19/19 | cutils: Improve qemu_strtosz handling of fractionstests/ util/ | +86 | 1 reply |
Reviews trailers per patch
All 19 patches have a Reviewed-by or Acked-by.
| Patch | Hanna Czenczek | Philippe Mathieu-Daudé |
|---|---|---|
| 1/19 | R-b | R-b |
| 2/19 | R-b | |
| 3/19 | R-b | |
| 4/19 | R-b | |
| 5/19 | R-b | |
| 6/19 | R-b | |
| 7/19 | R-b | |
| 8/19 | R-b | |
| 9/19 | R-b | |
| 10/19 | R-b | |
| 11/19 | R-b | |
| 12/19 | R-b | R-b |
| 13/19 | R-b | |
| 14/19 | R-b | |
| 15/19 | R-b | |
| 16/19 | R-b | |
| 17/19 | R-b | |
| 18/19 | R-b | |
| 19/19 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/19] Fix qemu_strtosz() read-out-of-bounds
v2 was here:
https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg02951.html
Since then:
- fix another qemu_strtoui bug
- address review comments from Hanna
001/19:[----] [--] 'test-cutils: Avoid g_assert in unit tests' 002/19:[----] [--] 'test-cutils: Use g_assert_cmpuint where appropriate' 003/19:[----] [--] 'test-cutils: Test integral qemu_strto* value on failures' 004/19:[0204] [FC] 'test-cutils: Test more integer corner cases' 005/19:[0048] [FC] 'cutils: Fix wraparound parsing in qemu_strtoui' 006/19:[----] [--] 'cutils: Document differences between parse_uint and qemu_strtou64' 007/19:[0016] [FC] 'cutils: Adjust signature of parse_uint[_full]' 008/19:[----] [--] 'cutils: Allow NULL endptr in parse_uint()' 009/19:[0006] [FC] 'test-cutils: Add coverage of qemu_strtod' 010/19:[----] [--] 'test-cutils: Prepare for upcoming semantic change in qemu_strtosz' 011/19:[----] [--] 'test-cutils: Refactor qemu_strtosz tests for less boilerplate' 012/19:[0007] [FC] 'cutils: Allow NULL str in qemu_strtosz' 013/19:[----] [--] 'numa: Check for qemu_strtosz_MiB error' 014/19:[0007] [FC] 'test-cutils: Add more coverage to qemu_strtosz' 015/19:[----] [--] 'cutils: Set value in all qemu_strtosz* error paths' 016/19:[----] [--] 'cutils: Set value in all integral qemu_strto* error paths' 017/19:[0013] [FC] 'cutils: Use parse_uint in qemu_strtosz for negative rejection' 018/19:[----] [--] 'cutils: Improve qemu_strtod* error paths' 019/19:[----] [--] 'cutils: Improve qemu_strtosz handling of fractions'
Eric Blake (19):
test-cutils: Avoid g_assert in unit tests
test-cutils: Use g_assert_cmpuint where appropriate
test-cutils: Test integral qemu_strto* value on failures
test-cutils: Test more integer corner cases
cutils: Fix wraparound parsing in qemu_strtoui
cutils: Document differences between parse_uint and qemu_strtou64
cutils: Adjust signature of parse_uint[_full]
cutils: Allow NULL endptr in parse_uint()
test-cutils: Add coverage of qemu_strtod
test-cutils: Prepare for upcoming semantic change in qemu_strtosz
test-cutils: Refactor qemu_strtosz tests for less boilerplate
cutils: Allow NULL str in qemu_strtosz
numa: Check for qemu_strtosz_MiB error
test-cutils: Add more coverage to qemu_strtosz
cutils: Set value in all qemu_strtosz* error paths
cutils: Set value in all integral qemu_strto* error paths
cutils: Use parse_uint in qemu_strtosz for negative rejection
cutils: Improve qemu_strtod* error paths
cutils: Improve qemu_strtosz handling of fractions
include/qemu/cutils.h | 5 +- audio/audio_legacy.c | 4 +- block/gluster.c | 4 +- block/nfs.c | 4 +- blockdev.c | 4 +- contrib/ivshmem-server/main.c | 4 +- hw/core/numa.c | 11 +- qapi/opts-visitor.c | 10 +- tests/unit/test-cutils.c | 2469 ++++++++++++++++++++++-------- ui/vnc.c | 4 +- util/cutils.c | 262 ++-- util/guest-random.c | 4 +- util/qemu-sockets.c | 10 +- tests/qemu-iotests/049.out | 7 +- tests/qemu-iotests/178.out.qcow2 | 3 +- tests/qemu-iotests/178.out.raw | 3 +- 16 files changed, 2030 insertions(+), 778 deletions(-)
base-commit: ad3387396a71416cacc0b394e5e440dd6e9ba19a
prerequisite-patch-id: 7d7341e4caa6f8ef05dda8dd5f43b98a6ef969f1
Signature · 1 line
2.40.1