ref: 7903c14993dd6b5fdaaed6664fd6a8878b227ffd
parent: b42a04c24ebcf55f1bc2927276a473490fdb6117
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Feb 7 09:51:13 EST 2020
Fix undefined behavior when reading constant in RGBLINK
--- a/src/link/patch.c
+++ b/src/link/patch.c
@@ -110,8 +110,8 @@
/* RPN operators */
-static uint8_t getRPNByte(uint8_t const **expression, int32_t *size,
- char const *fileName, int32_t lineNo)
+static uint32_t getRPNByte(uint8_t const **expression, int32_t *size,
+ char const *fileName, int32_t lineNo)
{
if (!(*size)--)
errx(1, "%s(%d): RPN expression overread", fileName, lineNo);