aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-07-12 16:03:56 -0400
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-07-13 21:11:17 +0000
commit16b77f6cea24332fffb75b6dcccb76f59565ed44 (patch)
tree257be1178729a16428f33c06e8545be632f81a8d
parent6fb187bdbcc5d5dd5bb432b047d629bf5d842d97 (diff)
In decode_base64 in wrap-json.c, initialize u16 as gcc now seems to miss that it will be initialized on the first loop iteration. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ic4a1a87ec64bd725d5a3f6e2d2a3901348b608f6
-rw-r--r--wrap-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrap-json.c b/wrap-json.c
index 0e0c31c..68dfe52 100644
--- a/wrap-json.c
+++ b/wrap-json.c
@@ -200,7 +200,7 @@ static int decode_base64(
size_t *decodedlen,
int url)
{
- uint16_t u16;
+ uint16_t u16 = 0;
uint8_t u8, *result;
size_t in, out, iin;
char c;
color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
--- a/buildX86/Makefile-Release.mk	2016-12-09 15:48:37.000000000 +0100
+++ b/buildX86/Makefile-Release.mk	2016-12-09 16:56:35.071740652 +0100
@@ -11,14 +11,14 @@
 MKDIR=mkdir
 CP=cp
 GREP=grep
-NM=nm
-CCADMIN=CCadmin
-RANLIB=ranlib
-CC=${CROSS_COMPILE}gcc
-CCC=${CROSS_COMPILE}g++
-CXX=${CROSS_COMPILE}g++
-FC=${CROSS_COMPILE}gfortran
-AS=${CROSS_COMPILE}as
+#NM=nm
+#CCADMIN=CCadmin
+#RANLIB=ranlib
+#CC=${CROSS_COMPILE}gcc
+#CCC=${CROSS_COMPILE}g++
+#CXX=${CROSS_COMPILE}g++
+#FC=${CROSS_COMPILE}gfortran
+#AS=${CROSS_COMPILE}as
 
 # Macros
 CND_PLATFORM=GNU-Linux-x86