]> git.sur5r.net Git - openocd/commit
target/image: make i/j unsigned to avoid ubsan runtime error
authorCody Schafer <openocd@codyps.com>
Mon, 2 Jul 2018 19:56:53 +0000 (15:56 -0400)
committerTomas Vanek <vanekt@fbl.cz>
Fri, 13 Jul 2018 16:15:57 +0000 (17:15 +0100)
commit4a9a07b1c5189e8f9024fa843f511a0e948e61b5
treee4c13d656f75ad3b61fe5c9acc639a7f729a8f90
parent73de82898840292b000ded9a48031701961c3c83
target/image: make i/j unsigned to avoid ubsan runtime error

src/target/image.c:1055:15: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'

Change-Id: I322fd391cf3f242beffc8a274824763c8c5e69a4
Signed-off-by: Cody Schafer <openocd@codyps.com>
Reviewed-on: http://openocd.zylin.com/4584
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Christopher Head <chead@zaber.com>
src/target/image.c