Task #119800 - lua-5.4.8-5.fc44/scan-results.err
back to task #119800download
Error: CPPCHECK_WARNING (CWE-758):
lua-5.4.8/src/ldump.c:55: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 53| static void dumpByte (DumpState *D, int y) {
# 54| lu_byte x = (lu_byte)y;
# 55|-> dumpVar(D, x);
# 56| }
# 57|
Error: CPPCHECK_WARNING (CWE-758):
lua-5.4.8/src/ldump.c:83: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 81|
# 82| static void dumpNumber (DumpState *D, lua_Number x) {
# 83|-> dumpVar(D, x);
# 84| }
# 85|
Error: CPPCHECK_WARNING (CWE-758):
lua-5.4.8/src/ldump.c:88: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 86|
# 87| static void dumpInteger (DumpState *D, lua_Integer x) {
# 88|-> dumpVar(D, x);
# 89| }
# 90|
Error: GCC_ANALYZER_WARNING (CWE-476):
lua-5.4.8/src/lgc.c:150:3: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lua-5.4.8/src/lgc.c:1734:6: enter_function: entry to 'luaC_fullgc'
lua-5.4.8/src/lgc.c:1738:6: branch_true: following 'true' branch...
lua-5.4.8/src/lgc.c:1739:5: branch_true: ...to here
lua-5.4.8/src/lgc.c:1739:5: call_function: calling 'fullinc' from 'luaC_fullgc'
# 148| static void linkgclist_ (GCObject *o, GCObject **pnext, GCObject **list) {
# 149| lua_assert(!isgray(o)); /* cannot be in a gray list */
# 150|-> *pnext = *list;
# 151| *list = o;
# 152| set2gray(o); /* now it is */
Error: GCC_ANALYZER_WARNING (CWE-476):
lua-5.4.8/src/lgc.c:667:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lua-5.4.8/src/lgc.c:1734:6: enter_function: entry to 'luaC_fullgc'
lua-5.4.8/src/lgc.c:1738:6: branch_true: following 'true' branch...
lua-5.4.8/src/lgc.c:1739:5: branch_true: ...to here
lua-5.4.8/src/lgc.c:1739:5: call_function: calling 'fullinc' from 'luaC_fullgc'
# 665| GCObject *o = g->gray;
# 666| nw2black(o);
# 667|-> g->gray = *getgclist(o); /* remove from 'gray' list */
# 668| switch (o->tt) {
# 669| case LUA_VTABLE: return traversetable(g, gco2t(o));
Error: CPPCHECK_WARNING (CWE-758):
lua-5.4.8/src/lundump.c:95: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 93| static lua_Number loadNumber (LoadState *S) {
# 94| lua_Number x;
# 95|-> loadVar(S, x);
# 96| return x;
# 97| }
Error: CPPCHECK_WARNING (CWE-758):
lua-5.4.8/src/lundump.c:102: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 100| static lua_Integer loadInteger (LoadState *S) {
# 101| lua_Integer x;
# 102|-> loadVar(S, x);
# 103| return x;
# 104| }