summary refs log tree commit diff stats
path: root/scripts/nsis.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-11-17 12:56:32 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-11-17 12:56:32 +0000
commit6d7ccc576d52fe2e7d965bfdb0e63b997e77975a (patch)
tree3375a28eb5bd9c5424c548be52b5d7579e66dbc4 /scripts/nsis.py
parentea2d7fcf3556bc279922fac08ea990093f1d7923 (diff)
downloadfocaccia-qemu-6d7ccc576d52fe2e7d965bfdb0e63b997e77975a.tar.gz
focaccia-qemu-6d7ccc576d52fe2e7d965bfdb0e63b997e77975a.zip
util/cutils: Fix Coverity array overrun in freq_to_str()
Fix Coverity CID 1435957:  Memory - illegal accesses (OVERRUN):

>>> Overrunning array "suffixes" of 7 8-byte elements at element
    index 7 (byte offset 63) using index "idx" (which evaluates to 7).

Note, the biggest input value freq_to_str() can accept is UINT64_MAX,
which is ~18.446 EHz, less than 1000 EHz.

Reported-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Message-id: 20201101215755.2021421-1-f4bug@amsat.org
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/nsis.py')
0 files changed, 0 insertions, 0 deletions