luci-base: further hash calculation signedness bugfixes
authorJo-Philipp Wich <jo@mein.io>
Mon, 19 Nov 2018 12:28:52 +0000 (13:28 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 19 Nov 2018 12:31:43 +0000 (13:31 +0100)
commit51de74d5201b0a1e314ed24cb1003dc3cf701633
tree41cba24ac1dd8c73e49eea79778fdcd5be146b39
parentc55436e36fa9553373f14898c0dd04bad6ee4715
luci-base: further hash calculation signedness bugfixes

 - cbi.js: make sure to treat single bytes as signed char when
   handling end cases

 - template_lmo.c: make sure to treat single bytes as signed
   char when handling end cases, avoids hash miscalculations
   on ARM

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/src/template_lmo.c