]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Fix issues raised by CodeQL (part 2)
authorPaul Durrant <pdurrant@amazon.com>
Mon, 20 Sep 2021 08:26:29 +0000 (09:26 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 20 Sep 2021 08:28:36 +0000 (09:28 +0100)
commit773a3a74f499d26be51b02bfe7ae93333d7daef9
tree97e29217aba256a29ff1f245b729196f6ad37b36
parentb0160349d92830753412a017c4e9fa481e172c15
Fix issues raised by CodeQL (part 2)

Swap strtol() for strtoul() in emulated.c (since we're not interested in
negative values anyway) and then check the returned value *before* checking
the end pointer.

Reported-by: Owen Smith <owen.smith@citrix.com>
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenfilt/emulated.c