svm: fix overflow when no region is big enough 57/41857/3
authorBenoît Ganne <[email protected]>
Wed, 20 Nov 2024 13:54:55 +0000 (14:54 +0100)
committerFlorin Coras <[email protected]>
Fri, 29 Nov 2024 21:55:28 +0000 (21:55 +0000)
commit6b224de844539bde50913575305cddda09f3b2a6
tree1c446cccaa93756dac3809fd10743088a9fa97a0
parent709f40c29d5c8d8b8974823aae537d52a91afa30
svm: fix overflow when no region is big enough

 - if no region is big enough to accommodate need_n_bits, we can scan
   past the end of the bitmask
 - rewrite the search loop for clarity

Type: fix

Change-Id: I82637bc91eb7e7ae922785bc626fa224638cb4e4
Signed-off-by: Benoît Ganne <[email protected]>
src/svm/svm.c