Skip to content

qstring: Safer qstring_from_substr()

Markus Armbruster qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* PATCH 1: Fix a botched assertion [Eric]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qstring: Assert size calculations don't overflowqobject/qstring.c+5 -11 reply
2/2qstring: Move qstring_from_substr()'s @end one to the rightblock/blkdebug.c block/blkverify.c block/nbd.c +3 more+8 -80 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] qstring: Safer qstring_from_substr()

This is based on liujunjie's "[PATCH] qstring: Fix qstring_from_substr() not to provoke int overflow". I intend to get that one into 3.0 as a bug fix. I figure PATCH 1 should go into 3.0 as a safety measure. I'm leaning towards including PATCH 2 as well.

Based-on: [email protected]

v2:
* PATCH 1: Fix a botched assertion [Eric]

Markus Armbruster (2):
qstring: Assert size calculations don't overflow
qstring: Move qstring_from_substr()'s @end one to the right

 block/blkdebug.c      |  2 +-
 block/blkverify.c     |  2 +-
 block/nbd.c           |  2 +-
 qobject/qstring.c     | 10 +++++++---
 tests/check-qobject.c |  2 +-
 tests/check-qstring.c |  2 +-
 6 files changed, 12 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1