Clang scan-build bug report for build #3526

GroupTypeFilePath LengthDescription
Memory errorUse of zero allocated/desktop/save_text.c34Use of memory allocated with size zeroDetails
Unused codeDead assignment/desktop/treeview.c2Value stored to 'redraw' is never readDetails
Logic errorFunction call with invalid argument/utils/file.c11The 1st argument to 'fstatat' is between -99 and -1 but should be a valid file descriptor or AT_FDCWDDetails
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c17The left operand of '!=' is a garbage valueDetails
Logic errorAssigned value is garbage or undefined/desktop/treeview.c40The left expression of the compound assignment is an uninitialized value. The computed value will also be garbageDetails
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c26The left operand of '!=' is a garbage valueDetails
Logic errorAssigned value is garbage or undefined/frontends/gtk/resources.c14Assigned value is garbage or undefinedDetails
Memory errorUse-after-free/desktop/treeview.c53Use of memory after it is freedDetails
Unused codeDead assignment/content/handlers/html/form.c2Value stored to 'err' is never readDetails
Unused codeDead assignment/build/Linux-gtk2/duktape/dom_settable_token_list.c2Value stored to 'exc' is never readDetails
Unused codeDead assignment/desktop/cookie_manager.c2Value stored to 'err' is never readDetails
Stream handling errorStream already in EOF/content/urldb.c26Read function called when stream is in EOF state. Function has no effectDetails
Unused codeDead initialization/frontends/monkey/browser.c2Value stored to 'ptr_name' during its initialization is never readDetails
Memory errorMemory leak/frontends/gtk/download.c21Potential leak of memory pointed to by 'destination'Details
Unused codeDead nested assignment/frontends/monkey/dispatch.c2Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'Details
Logic errorFunction call with invalid argument/utils/file.c14The 1st argument to 'unlinkat' is between -99 and -1 but should be a valid file descriptor or AT_FDCWDDetails
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c23The left operand of '!=' is a garbage valueDetails
Unused codeDead assignment/build/Linux-gtk2/duktape/dom_token_list.c2Value stored to 'exc' is never readDetails
Logic errorDereference of null pointer/content/handlers/html/layout_internal.h41Access to field 'style' results in a dereference of a null pointer (loaded from variable 'b')Details
Unused codeDead nested assignment/content/fetchers/about/chart.c2Although the value stored to 'vallen' is used in the enclosing expression, the value is never actually read from 'vallen'Details
Unused codeDead assignment/content/fetchers/about/chart.c2Value stored to 'kvlen' is never readDetails
Unused codeDead initialization/frontends/monkey/browser.c2Value stored to 'state' during its initialization is never readDetails
Unused codeDead assignment/build/Linux-gtk2/duktape/dom_token_list.c2Value stored to 'exc' is never readDetails
Unused codeDead assignment/content/handlers/html/table.c2Value stored to 'a_src' is never readDetails
Unused codeDead assignment/utils/ssl_certs.c2Value stored to 'kvlen' is never readDetails
Unix APIAllocator sizeof operand mismatch/content/fs_backing_store.c2Result of 'malloc' is converted to a pointer of type 'struct store_entry *', which is incompatible with sizeof operand type 'struct state_entry *'Details
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c34The left operand of '!=' is a garbage valueDetails
Unused codeDead assignment/desktop/browser_window.c2Value stored to 'res' is never readDetails
Logic errorDereference of null pointer/content/handlers/html/box_construct.c35Access to field 'type' results in a dereference of a null pointer (loaded from field 'containing_block')Details
Unused codeDead increment/desktop/treeview.c2Value stored to 'pos' is never readDetails
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c26The left operand of '!=' is a garbage valueDetails
Unused codeDead assignment/content/handlers/html/table.c2Value stored to 'a_src' is never readDetails
Logic errorFunction call with invalid argument/utils/filename.c19The 1st argument to 'fstatat' is between -99 and -1 but should be a valid file descriptor or AT_FDCWDDetails
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c21The left operand of '!=' is a garbage valueDetails
Unused codeDead assignment/build/Linux-gtk2/duktape/dom_token_list.c2Value stored to 'exc' is never readDetails
Logic errorDereference of null pointer/content/handlers/html/table.c12Access to field 'parent' results in a dereference of a null pointer (loaded from variable 'row')Details
Logic errorFunction call with invalid argument/utils/filename.c28The 1st argument to 'unlinkat' is between -99 and -1 but should be a valid file descriptor or AT_FDCWDDetails
Memory errorUse-after-free/content/handlers/javascript/duktape/dukky.c56Use of memory after it is freedDetails
Logic errorDereference of null pointer/content/handlers/html/layout_flex.c50Access to field 'height' results in a dereference of a null pointer (loaded from variable 'b')Details
Logic errorUninitialized argument value/content/fetchers/about/websearch.c121st function call argument is an uninitialized valueDetails
Unused codeDead assignment/build/Linux-gtk2/duktape/node.c2Value stored to 'exc' is never readDetails
Unused codeDead assignment/content/handlers/image/rsvg246.c2Value stored to 'renderres' is never readDetails
Unused codeDead assignment/frontends/framebuffer/gui.c2Value stored to 'widget' is never readDetails
Logic errorResult of operation is garbage or undefined/content/handlers/html/box_inspect.c13The right operand of '-' is a garbage valueDetails
Logic errorDereference of null pointer/content/urldb.c35Access to field 'children' results in a dereference of a null pointer (loaded from variable 'p')Details
Unused codeDead assignment/frontends/framebuffer/fbtk/osk.c2Value stored to 'widget' is never readDetails
Logic errorResult of operation is garbage or undefined/content/handlers/text/textplain.c19The left operand of '==' is a garbage valueDetails
Logic errorUninitialized argument value/content/handlers/html/html.c461st function call argument is an uninitialized valueDetails
Memory errorUse-after-free/frontends/framebuffer/fbtk/fbtk.c17Use of memory after it is freedDetails
Unused codeDead nested assignment/frontends/monkey/dispatch.c2Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'Details
Unused codeDead nested assignment/content/fetchers/about/chart.c2Although the value stored to 'vallen' is used in the enclosing expression, the value is never actually read from 'vallen'Details
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c18The left operand of '!=' is a garbage valueDetails
Unused codeDead assignment/content/textsearch.c2Value stored to 'type' is never readDetails
Memory errorUse-after-free/content/handlers/javascript/duktape/dukky.c44Use of memory after it is freedDetails
Stream handling errorInvalid stream state/utils/libdom.c11File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behaviorDetails
Logic errorDivision by zero/content/handlers/html/layout.c37Division by zeroDetails
Unused codeDead assignment/build/Linux-gtk2/duktape/dom_token_list.c2Value stored to 'exc' is never readDetails
Unused codeDead assignment/content/handlers/html/form.c2Value stored to 'err' is never readDetails
Stream handling errorInvalid stream state/content/urldb.c26File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behaviorDetails
Unused codeDead assignment/desktop/global_history.c2Value stored to 'err' is never readDetails
Logic errorResult of operation is garbage or undefined/frontends/gtk/menu.c18The left operand of '!=' is a garbage valueDetails
Memory errorUse-after-free/content/handlers/image/image_cache.c14Use of memory after it is freedDetails
Unused codeDead assignment/content/fetchers/about/websearch.c2Value stored to 'kvlen' is never readDetails