xserver-1.17 - scan-build results

User:jeremy@yuffie.apple.com
Working Directory:/Users/jeremy/src/freedesktop/jhbuild/src/xorg/xserver-1.17
Command Line:make
Clang Version:clang version 3.8.0 (branches/release_38 262722)
Date:Sun May 29 22:49:05 2016

Bug Summary

Bug TypeQuantityDisplay?
All Bugs207
Dead store
Dead assignment34
Dead increment19
Dead initialization7
Logic error
Assigned value is garbage or undefined8
Branch condition evaluates to a garbage value3
Dereference of null pointer69
Dereference of undefined pointer value1
Division by zero2
Out-of-bound array access1
Result of operation is garbage or undefined8
Uninitialized argument value2
Unix API9
Memory Error
Bad free2
Memory leak13
Use-after-free1
Unix API
Allocator sizeof operand mismatch8
Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)20

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Unix APIAllocator sizeof operand mismatchrandr/rrproperty.cProcRRQueryOutputProperty4501View Report
Unix APIAllocator sizeof operand mismatchXext/sync.cSyncCreate8971View Report
Unix APIAllocator sizeof operand mismatchrandr/rrproviderproperty.cProcRRQueryProviderProperty4481View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateLinearGradientPicture9151View Report
Unix APIAllocator sizeof operand mismatchdix/enterleave.cDeliverStateNotifyEvent7171View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateRadialGradientPicture9551View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateConicalGradientPicture9981View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateSolidPicture8851View Report
Logic errorAssigned value is garbage or undefinedglx/glxcmds.c__glXDisp_GetVisualConfigs10579View Report
Logic errorAssigned value is garbage or undefineddix/dixfonts.cSetFontPath169016View Report
Logic errorAssigned value is garbage or undefinedmi/miwideline.cmiWideDashSegment225225View Report
Logic errorAssigned value is garbage or undefineddix/colormap.cAllocShared19828View Report
Logic errorAssigned value is garbage or undefinedmi/miwideline.cmiWideDashSegment215325View Report
Logic errorAssigned value is garbage or undefineddix/colormap.cAllocShared19947View Report
Logic errorAssigned value is garbage or undefinedglx/glxcmds.cDoGetFBConfigs11789View Report
Logic errorAssigned value is garbage or undefinedmi/miwideline.cmiRoundCapClip141526View Report
Memory ErrorBad freedix/dixfonts.cdoImageText14926View Report
Memory ErrorBad freedix/region.cRegionBreak3389View Report
Logic errorBranch condition evaluates to a garbage valuemi/miarc.cmiComputeArcs196119View Report
Logic errorBranch condition evaluates to a garbage valuemi/miarc.cmiComputeArcs203326View Report
Logic errorBranch condition evaluates to a garbage valueXext/xvdisp.cXineramifyXv178314View Report
Dead storeDead assignmentfb/fbarc.cwfbPolyArc1301View Report
Dead storeDead assignmentdix/devices.cInitTouchClassDeviceStruct16031View Report
Dead storeDead assignmentrender/render.cProcRenderAddGlyphs10341View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo9541View Report
Dead storeDead assignmentdix/dixfonts.cQueryFont5421View Report
Dead storeDead assignmentglx/single2.c__glXDisp_RenderMode1771View Report
Dead storeDead assignmentmi/miarc.cmiComputeCircleSpans3941View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsAndAliases5731View Report
Dead storeDead assignmentrandr/rrcrtc.cProcRRSetCrtcConfig10861View Report
Dead storeDead assignmentrandr/rrscreen.cProcRRSetScreenConfig9451View Report
Dead storeDead assignmentrandr/rrcrtc.cProcRRSetPanning12911View Report
Dead storeDead assignmentmi/miarc.cdrawZeroArc25131View Report
Dead storeDead assignmentXi/xiproperty.cProcXChangeDeviceProperty9011View Report
Dead storeDead assignmentxkb/xkbActions.cXkbHandleActions12201View Report
Dead storeDead assignmentxkb/maprules.cGetInputLine1671View Report
Dead storeDead assignmentXi/xiproperty.cProcXIChangeProperty11401View Report
Dead storeDead assignmentos/access.cResetHosts10781View Report
Dead storeDead assignmentrandr/rrscreen.cProcRRSetScreenConfig9361View Report
Dead storeDead assignmentmi/miarc.cdrawZeroArc25141View Report
Dead storeDead assignmentxkb/xkb.c_XkbSetDeviceInfoCheck66181View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo8641View Report
Dead storeDead assignmentdix/dispatch.cSendConnSetup35791View Report
Dead storeDead assignmentxkb/xkbUtils.cXkbCopyControls21101View Report
Dead storeDead assignmentxkb/xkb.c_XkbSetNames41411View Report
Dead storeDead assignmentXi/exevents.cDeliverOneTouchEvent10321View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo9721View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo9231View Report
Dead storeDead assignmentrandr/randr.cRRSetChanged5541View Report
Dead storeDead assignmentmi/miarc.cdrawZeroArc25151View Report
Dead storeDead assignmentglx/single2swap.c__glXDispSwap_RenderMode1881View Report
Dead storeDead assignmentxkb/xkb.cXkbSendCompatMap27371View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsAndAliases6841View Report
Dead storeDead assignmentdix/events.cDeliverFocusedEvent41191View Report
Dead storeDead assignmentrender/picture.cPictureCreateDefaultFormats2631View Report
Dead storeDead incrementglx/indirect_dispatch_swap.c__glXDispSwap_GetError18011View Report
Dead storeDead incrementmi/mifillarc.cmiFillArcSliceI5661View Report
Dead storeDead incrementglx/indirect_dispatch_swap.c__glXDispSwap_EndList1871View Report
Dead storeDead incrementfb/fbbltone.cwfbBltOne245601View Report
Dead storeDead incrementdix/enterleave.cFixDeviceValuator6291View Report
Dead storeDead incrementXi/xiquerydevice.cProcXIQueryDevice1241View Report
Dead storeDead incrementxkb/xkbfmisc.cXkbWriteXKBKeymapForNames2921View Report
Dead storeDead incrementxkb/xkb.c_XkbSetNames42491View Report
Dead storeDead incrementmi/miarc.cmiFillWideEllipse8671View Report
Dead storeDead incrementfb/fbbltone.cfbBltOne245601View Report
Dead storeDead incrementrandr/rrcrtc.cProcRRGetCrtcTransform15611View Report
Dead storeDead incrementglx/indirect_dispatch.c__glXDisp_GetError15881View Report
Dead storeDead incrementmiext/shadow/shafb8.cstore_afb8801View Report
Dead storeDead incrementxkb/xkb.c_XkbSetNamedIndicator34651View Report
Dead storeDead incrementmiext/shadow/shafb4.cstore_afb4761View Report
Dead storeDead incrementxkb/xkbLEDs.cXkbSetIndicators3911View Report
Dead storeDead incrementmi/mifillarc.cmiFillArcSliceD6101View Report
Dead storeDead incrementXi/xiquerydevice.cListDeviceClasses5491View Report
Dead storeDead incrementglx/indirect_dispatch.c__glXDisp_EndList711View Report
Dead storeDead initializationos/access.cResetHosts9301View Report
Dead storeDead initializationdix/events.cPickPointer60311View Report
Dead storeDead initializationXext/panoramiX.cPanoramiXExtensionInit4411View Report
Dead storeDead initializationxkb/xkbUtils.c_XkbLookupAnyDevice781View Report
Dead storeDead initializationXext/sync.cIdleTimeBlockHandler26831View Report
Dead storeDead initializationdix/window.clog_window_info2231View Report
Dead storeDead initializationglx/indirect_dispatch.c__glXDisp_CallLists911View Report
Logic errorDereference of null pointerXext/sync.cProcSyncChangeCounter14746View Report
Logic errorDereference of null pointerdix/touch.cTouchAddRegularListener83013View Report
Logic errorDereference of null pointermi/miarc.cmiComputeArcs220640View Report
Logic errorDereference of null pointerxkb/xkbLEDs.cXkbAllocSrvLedInfo61217View Report
Logic errorDereference of null pointerXext/saver.csetEventMask26215View Report
Logic errorDereference of null pointerXext/sync.cProcSyncQueryCounter16726View Report
Logic errorDereference of null pointermi/mieq.cmieqProcessDeviceEvent56417View Report
Logic errorDereference of null pointerrecord/record.cRecordAProtocolElement35211View Report
Logic errorDereference of null pointerrandr/rrscreen.cProcRRGetScreenInfo83817View Report
Logic errorDereference of null pointerXext/sync.cProcSyncDestroyCounter15056View Report
Logic errorDereference of null pointerXext/xvmc.cProcXvMCListSubpictureTypes55416View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1189View Report
Logic errorDereference of null pointerxkb/xkbLEDs.cXkbCheckIndicatorMaps4699View Report
Logic errorDereference of null pointerXi/exevents.cXISetEventMask30778View Report
Logic errorDereference of null pointerXi/xibarriers.cinput_constrain_cursor48010View Report
Logic errorDereference of null pointerdix/events.cCoreEnterLeaveEvent458415View Report
Logic errorDereference of null pointerdix/events.cCheckPhysLimits75529View Report
Logic errorDereference of null pointerXi/exevents.cDeepCopyKeyboardClasses44643View Report
Logic errorDereference of null pointerXi/exevents.cInputClientGone25778View Report
Logic errorDereference of null pointerXext/panoramiX.cCopyBits113077View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1239View Report
Logic errorDereference of null pointerxkb/xkbActions.c_XkbFilterActionMessage7733View Report
Logic errorDereference of null pointerXi/exevents.cTouchClientWantsOwnershipEvents9781View Report
Logic errorDereference of null pointerXext/sync.cProcSyncListSystemCounters12984View Report
Logic errorDereference of null pointerpresent/present.cpresent_flip17512View Report
Logic errorDereference of null pointermi/mipoly.cmiFillGeneralPoly64630View Report
Logic errorDereference of null pointerdix/events.cRecalculateDeliverableEvents435834View Report
Logic errorDereference of null pointerXext/saver.cMakeScreenPrivate22716View Report
Logic errorDereference of null pointerXi/xibarriers.cinput_constrain_cursor5148View Report
Logic errorDereference of null pointerexa/exa.cexaCloseScreen7642View Report
Logic errorDereference of null pointerrandr/rrcrtc.cProcRRGetCrtcInfo9568View Report
Logic errorDereference of null pointerexa/exa.cexaDriverInit104315View Report
Logic errorDereference of null pointerdix/dixfonts.cdoListFontsAndAliases76814View Report
Logic errorDereference of null pointerXi/xichangecursor.cProcXIChangeCursor938View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviderInfo2118View Report
Logic errorDereference of null pointerrandr/rrcrtc.cRRCrtcDetachScanoutPixmap3675View Report
Logic errorDereference of null pointerrandr/rrscreen.crrGetMultiScreenResources4525View Report
Logic errorDereference of null pointerxkb/xkbout.cWriteXKBSection75019View Report
Logic errorDereference of null pointerglx/glxcmds.cvalidGlxFBConfigForWindow1229View Report
Logic errorDereference of null pointerXext/saver.cCreateSaverWindow4744View Report
Logic errorDereference of null pointerdix/colormap.cFindColor128116View Report
Logic errorDereference of null pointerXi/exevents.cRetrieveTouchDeliveryData13245View Report
Logic errorDereference of null pointerdix/touch.cTouchAddRegularListener84714View Report
Logic errorDereference of null pointerrandr/rrscreen.crrGetScreenResources56715View Report
Logic errorDereference of null pointerXext/panoramiXprocs.cPanoramiXCopyArea11928View Report
Logic errorDereference of null pointerXi/exevents.cDeviceEventSuppressForWindow29747View Report
Logic errorDereference of null pointerrender/animcur.cAnimCursorCreate3589View Report
Logic errorDereference of null pointerdix/events.cActivateKeyboardGrab16357View Report
Logic errorDereference of null pointermi/mipoly.cmiFillGeneralPoly64526View Report
Logic errorDereference of null pointerrecord/record.cRecordInstallHooks88924View Report
Logic errorDereference of null pointerxkb/xkbActions.c_XkbFilterRedirectKey8613View Report
Logic errorDereference of null pointerrender/picture.cPictureInitIndexedFormat46312View Report
Logic errorDereference of null pointerXi/exevents.cDeliverTouchEmulatedEvent145410View Report
Logic errorDereference of null pointerxkb/xkbActions.c_XkbFilterLockState3683View Report
Logic errorDereference of null pointerdix/cursor.cAllocGlyphCursor42025View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1269View Report
Logic errorDereference of null pointerrecord/record.cProcRecordGetContext221868View Report
Logic errorDereference of null pointerXi/exevents.cXISetEventMask30684View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1209View Report
Logic errorDereference of null pointerXext/panoramiX.cXineramaGetImageData125054View Report
Logic errorDereference of null pointermi/micmap.cmiInitVisuals50315View Report
Logic errorDereference of null pointerXi/exevents.cDeviceEventSuppressForWindow297420View Report
Logic errorDereference of null pointermi/mioverlay.cDoLeaf173220View Report
Logic errorDereference of null pointerXi/exevents.cRetrieveTouchDeliveryData13386View Report
Logic errorDereference of null pointerXext/sync.cSysCounterGetPrivate1224View Report
Logic errorDereference of null pointerrandr/rroutput.cProcRRGetOutputInfo4637View Report
Logic errorDereference of null pointerrandr/rrscreen.crrGetScreenResources57815View Report
Logic errorDereference of null pointeros/access.cRemoveHost13759View Report
Logic errorDereference of null pointerXext/panoramiXprocs.cPanoramiXCopyPlane13048View Report
Logic errorDereference of undefined pointer valueXext/panoramiXprocs.cPanoramiXCopyArea11088View Report
Logic errorDivision by zerorender/miindex.cmiBuildRenderColormap15716View Report
Logic errorDivision by zeromi/midash.cmiStepDash788View Report
Memory ErrorMemory leakpresent/present_notify.cpresent_create_notifies996View Report
Memory ErrorMemory leakmi/miexpose.cmiPaintWindow56516View Report
Memory ErrorMemory leakmi/micopy.cmiCopyRegion11322View Report
Memory ErrorMemory leakXi/xipassivegrab.cProcXIPassiveGrabDevice23729View Report
Memory ErrorMemory leakXext/shm.cProcPanoramiXShmCreatePixmap97721View Report
Memory ErrorMemory leakXi/xipassivegrab.cProcXIPassiveGrabDevice23721View Report
Memory ErrorMemory leakdix/ptrveloc.cInitPredictableAccelerationScheme1436View Report
Memory ErrorMemory leakdix/ptrveloc.cInitPredictableAccelerationScheme1383View Report
Memory ErrorMemory leakmi/micopy.cmiCopyRegion7919View Report
Memory ErrorMemory leakdix/privates.cdixAllocatePrivates5226View Report
Memory ErrorMemory leakXext/shm.cProcPanoramiXShmGetImage85813View Report
Memory ErrorMemory leakdix/ptrveloc.cInitPredictableAccelerationScheme1385View Report
Memory ErrorMemory leakmi/mibitblt.cmiGetImage66913View Report
Logic errorOut-of-bound array accessXi/listdev.cCopyDeviceName12821View Report
Logic errorResult of operation is garbage or undefinedmi/miarc.cmiFillWideEllipse81322View Report
Logic errorResult of operation is garbage or undefinedmi/miwideline.cQuickSortSpansX30442View Report
Logic errorResult of operation is garbage or undefinedrender/render.cProcRenderCreateCursor162726View Report
Logic errorResult of operation is garbage or undefinedmi/miwideline.cmiFillUniqueSpanGroup48920View Report
Logic errorResult of operation is garbage or undefinedmi/miarc.cmiFillWideEllipse83324View Report
Logic errorResult of operation is garbage or undefinedrender/render.cProcRenderCreateCursor163036View Report
Logic errorResult of operation is garbage or undefinedos/log.cLogVHdrMessageVerb7657View Report
Logic errorResult of operation is garbage or undefinedexa/exa_render.cexaTryDriverComposite75718View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)render/render.cProcRenderCreateCursor14903View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)hw/xquartz/mach-startup/bundle-main.cstartup_trigger46418View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)mi/mifillrct.cmiPolyFillRect1034View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dix/gc.cSetDashes9293View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dix/extension.cProcListExtensions3129View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)Xi/getselev.cProcXGetSelectedExtensionEvents1358View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)render/filter.cSetPicturePictFilter33912View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dix/dixfonts.cGetFontPath17746View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)record/record.cProcRecordGetContext21542View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)Xext/panoramiXprocs.cPanoramiXGetImage199212View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dbe/midbe.cmiDbeGetVisualInfo902View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)glx/singlepix.cGetSeparableFilter2326View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dix/dispatch.cDoGetImage214413View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)Xi/queryst.cProcXQueryDeviceState1149View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)glx/singlepixswap.cGetSeparableFilter2667View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)glx/glxscreens.c__glXScreenInit3556View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)miext/rootless/rootlessWindow.cStartFrameResize9526View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)mi/miwideline.cmiFillUniqueSpanGroup52815View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)os/connection.cCreateWellKnownSockets4325View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)Xi/xiquerydevice.cProcXIQueryDevice1057View Report
Logic errorUninitialized argument valueXext/panoramiX.cPanoramiXConsolidate8434View Report
Logic errorUninitialized argument valueXext/xvdisp.cXineramifyXv178810View Report
Logic errorUnix APIXext/panoramiX.cXineramaGetImageData128044View Report
Logic errorUnix APIrecord/set.cIntervalListCreateSet3576View Report
Logic errorUnix APIdix/property.cdixChangeWindowProperty30613View Report
Logic errorUnix APIxkb/xkbtext.cXkbIMWhichStateMaskText47814View Report
Logic errorUnix APIxkb/xkbUtils.c_XkbCopyNames129020View Report
Logic errorUnix APIXext/panoramiX.cXineramaGetImageData125758View Report
Logic errorUnix APIXi/exevents.cDeepCopyKeyboardClasses47939View Report
Logic errorUnix APIdix/property.cdixChangeWindowProperty27112View Report
Logic errorUnix APIxkb/xkbtext.cXkbControlsMaskText54014View Report
Memory ErrorUse-after-freedix/gc.cCopyGC73922View Report