]> git.ipfire.org Git - thirdparty/nettle.git/commit
des: assign value after sanity check to avoid undefined behavior
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 10 Mar 2016 16:53:01 +0000 (17:53 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 15 Mar 2016 18:19:46 +0000 (19:19 +0100)
commit45a19a4bc6c72c07dcd4cd7e84b2c2bbdb3f60dd
tree405dded67bde23da522061d1f89c6ed74733fd35
parent628a2c19610a521fdae7d4307eb3fecf5f7478e0
des: assign value after sanity check to avoid undefined behavior

This corrects issues of the following type caught with -fsanitize=undefined
des.c:176:42: runtime error: index 42 out of bounds for type 'int8_t [26][4]'
des.c