xserver-1.18 - scan-build results

User:jeremy@yuffie.apple.com
Working Directory:/Users/jeremy/src/freedesktop/jhbuild/src/xorg/xserver-1.18
Command Line:make
Clang Version:clang version 3.8.0 (branches/release_38 262722)
Date:Mon May 30 23:38:07 2016

Bug Summary

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

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateLinearGradientPicture9241View Report
Unix APIAllocator sizeof operand mismatchXext/sync.cSyncCreate8971View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateSolidPicture8941View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateRadialGradientPicture9641View Report
Unix APIAllocator sizeof operand mismatchrender/picture.cCreateConicalGradientPicture10071View Report
Logic errorAssigned value is garbage or undefinedglx/glxcmds.c__glXDisp_GetVisualConfigs10569View Report
Logic errorAssigned value is garbage or undefinedmi/miwideline.cmiWideDashSegment214925View Report
Logic errorAssigned value is garbage or undefineddix/dixfonts.cSetFontPath168916View Report
Logic errorAssigned value is garbage or undefinedmi/miwideline.cmiRoundCapClip141126View Report
Logic errorAssigned value is garbage or undefinedglx/glxcmds.cDoGetFBConfigs11779View Report
Logic errorAssigned value is garbage or undefinedmi/miwideline.cmiWideDashSegment224825View Report
Memory ErrorBad freedix/dixfonts.cdoImageText14916View Report
Memory ErrorBad freedix/region.cRegionBreak3389View Report
Logic errorBranch condition evaluates to a garbage valueXext/xvdisp.cXineramifyXv178314View Report
Dead storeDead assignmentxkb/xkb.c_XkbSetDeviceInfoCheck66181View Report
Dead storeDead assignmentdix/devices.cInitTouchClassDeviceStruct16031View Report
Dead storeDead assignmentrandr/rrcrtc.cProcRRSetCrtcConfig11161View Report
Dead storeDead assignmentmi/miarc.cdrawZeroArc25121View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo9531View Report
Dead storeDead assignmentrandr/rrscreen.cProcRRSetScreenConfig9371View Report
Dead storeDead assignmentmi/miarc.cmiComputeCircleSpans3941View Report
Dead storeDead assignmentmi/miarc.cdrawZeroArc25141View Report
Dead storeDead assignmentxkb/maprules.cGetInputLine1671View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsAndAliases6831View Report
Dead storeDead assignmentrandr/randr.cRRSetChanged5581View Report
Dead storeDead assignmentrender/picture.cPictureCreateDefaultFormats2631View Report
Dead storeDead assignmentglx/single2.c__glXDisp_RenderMode1761View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo9221View Report
Dead storeDead assignmentxkb/xkb.c_XkbSetNames41421View Report
Dead storeDead assignmentxkb/xkbActions.cXkbHandleActions12271View Report
Dead storeDead assignmentglx/single2swap.c__glXDispSwap_RenderMode1871View Report
Dead storeDead assignmentdix/events.cDeliverFocusedEvent41191View Report
Dead storeDead assignmentxkb/xkb.cXkbSendCompatMap27371View Report
Dead storeDead assignmentrandr/rrscreen.cProcRRSetScreenConfig9461View Report
Dead storeDead assignmentXi/exevents.cDeliverOneTouchEvent10321View Report
Dead storeDead assignmentos/access.cResetHosts10781View Report
Dead storeDead assignmentfb/fbarc.cwfbPolyArc1301View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo9711View Report
Dead storeDead assignmentmi/miarc.cdrawZeroArc25131View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsAndAliases5721View Report
Dead storeDead assignmentdix/dixfonts.cdoListFontsWithInfo8631View Report
Dead storeDead assignmentxkb/xkbUtils.cXkbCopyControls21121View Report
Dead storeDead assignmentdix/dixfonts.cQueryFont5411View Report
Dead storeDead assignmentrandr/rrcrtc.cProcRRSetPanning13211View Report
Dead storeDead assignmentXi/xiproperty.cProcXIChangeProperty11381View Report
Dead storeDead assignmentXi/xiproperty.cProcXChangeDeviceProperty8991View Report
Dead storeDead assignmentdix/dispatch.cSendConnSetup35801View Report
Dead storeDead assignmentrender/render.cProcRenderAddGlyphs10341View Report
Dead storeDead incrementxkb/xkbLEDs.cXkbSetIndicators3911View Report
Dead storeDead incrementrandr/rrcrtc.cProcRRGetCrtcTransform15911View Report
Dead storeDead incrementXi/xiquerydevice.cProcXIQueryDevice1241View Report
Dead storeDead incrementglx/indirect_dispatch.c__glXDisp_GetError15881View Report
Dead storeDead incrementmiext/shadow/shafb4.cstore_afb4761View Report
Dead storeDead incrementxkb/xkbfmisc.cXkbWriteXKBKeymapForNames2921View Report
Dead storeDead incrementfb/fbbltone.cfbBltOne245601View Report
Dead storeDead incrementmiext/shadow/shafb8.cstore_afb8801View Report
Dead storeDead incrementmi/mifillarc.cmiFillArcSliceI5661View Report
Dead storeDead incrementdix/enterleave.cFixDeviceValuator6291View Report
Dead storeDead incrementxkb/xkb.c_XkbSetNames42501View Report
Dead storeDead incrementglx/indirect_dispatch_swap.c__glXDispSwap_GetError18011View Report
Dead storeDead incrementfb/fbbltone.cwfbBltOne245601View Report
Dead storeDead incrementmi/mifillarc.cmiFillArcSliceD6101View Report
Dead storeDead incrementmi/miarc.cmiFillWideEllipse8671View Report
Dead storeDead incrementXi/xiquerydevice.cListDeviceClasses5491View Report
Dead storeDead incrementglx/indirect_dispatch_swap.c__glXDispSwap_EndList1871View Report
Dead storeDead incrementglx/indirect_dispatch.c__glXDisp_EndList711View Report
Dead storeDead incrementxkb/xkb.c_XkbSetNamedIndicator34661View Report
Dead storeDead initializationglx/indirect_dispatch.c__glXDisp_CallLists911View Report
Dead storeDead initializationdix/events.cPickPointer60311View Report
Dead storeDead initializationos/access.cResetHosts9301View Report
Dead storeDead initializationxkb/xkbUtils.c_XkbLookupAnyDevice781View Report
Dead storeDead initializationXext/sync.cIdleTimeBlockHandler26831View Report
Dead storeDead initializationXext/panoramiX.cPanoramiXExtensionInit4411View Report
Logic errorDereference of null pointerxkb/xkbout.cWriteXKBSection75019View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1239View Report
Logic errorDereference of null pointerXext/sync.cProcSyncChangeCounter14746View Report
Logic errorDereference of null pointerXi/exevents.cRetrieveTouchDeliveryData13386View Report
Logic errorDereference of null pointermi/mioverlay.cDoLeaf173320View Report
Logic errorDereference of null pointerXext/sync.cProcSyncDestroyCounter15056View Report
Logic errorDereference of null pointerxkb/xkbActions.c_XkbFilterRedirectKey8683View Report
Logic errorDereference of null pointerrender/animcur.cAnimCursorCreate3589View Report
Logic errorDereference of null pointerxkb/xkbLEDs.cXkbAllocSrvLedInfo61217View Report
Logic errorDereference of null pointerXext/sync.cProcSyncListSystemCounters12984View Report
Logic errorDereference of null pointerXi/exevents.cDeviceEventSuppressForWindow29757View Report
Logic errorDereference of null pointerxkb/xkbActions.c_XkbFilterActionMessage7803View Report
Logic errorDereference of null pointerXi/xibarriers.cinput_constrain_cursor5148View Report
Logic errorDereference of null pointerXi/exevents.cDeepCopyKeyboardClasses44643View Report
Logic errorDereference of null pointerdix/cursor.cAllocGlyphCursor41225View Report
Logic errorDereference of null pointerXext/saver.csetEventMask26215View Report
Logic errorDereference of null pointerXext/xvmc.cProcXvMCListSubpictureTypes56516View Report
Logic errorDereference of null pointerdix/colormap.cFindColor89516View Report
Logic errorDereference of null pointerexa/exa.cexaDriverInit104315View Report
Logic errorDereference of null pointerdix/touch.cTouchAddRegularListener84714View Report
Logic errorDereference of null pointerXext/panoramiXprocs.cPanoramiXCopyPlane13048View Report
Logic errorDereference of null pointerXi/xichangecursor.cProcXIChangeCursor938View Report
Logic errorDereference of null pointerXi/exevents.cXISetEventMask30788View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1209View Report
Logic errorDereference of null pointerrecord/record.cProcRecordGetContext221368View Report
Logic errorDereference of null pointerXi/exevents.cRetrieveTouchDeliveryData13245View Report
Logic errorDereference of null pointerrandr/rrcrtc.cProcRRGetCrtcInfo9868View Report
Logic errorDereference of null pointerXext/saver.cCreateSaverWindow4744View Report
Logic errorDereference of null pointerXi/exevents.cXISetEventMask30694View Report
Logic errorDereference of null pointermi/mipoly.cmiFillGeneralPoly64526View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1189View Report
Logic errorDereference of null pointerrecord/record.cRecordInstallHooks88924View Report
Logic errorDereference of null pointerrender/picture.cPictureInitIndexedFormat46312View Report
Logic errorDereference of null pointerXi/xibarriers.cinput_constrain_cursor48010View Report
Logic errorDereference of null pointerrecord/record.cRecordAProtocolElement35211View Report
Logic errorDereference of null pointermi/miinitext.cInitExtensions3374View Report
Logic errorDereference of null pointerdix/events.cCheckPhysLimits75529View Report
Logic errorDereference of null pointerXext/saver.cMakeScreenPrivate22716View Report
Logic errorDereference of null pointerrandr/rroutput.cProcRRGetOutputInfo4757View Report
Logic errorDereference of null pointerdix/touch.cTouchAddRegularListener83013View Report
Logic errorDereference of null pointerrandr/rrcrtc.cRRCrtcDetachScanoutPixmap3675View Report
Logic errorDereference of null pointerXext/panoramiX.cCopyBits113077View Report
Logic errorDereference of null pointerrandr/rrscreen.crrGetScreenResources56815View Report
Logic errorDereference of null pointerrandr/rrscreen.crrGetScreenResources57915View Report
Logic errorDereference of null pointerXext/sync.cProcSyncQueryCounter16726View Report
Logic errorDereference of null pointermi/mipoly.cmiFillGeneralPoly64630View Report
Logic errorDereference of null pointerdix/events.cRecalculateDeliverableEvents435834View Report
Logic errorDereference of null pointerdix/dixfonts.cdoListFontsAndAliases76714View Report
Logic errorDereference of null pointerrandr/rrscreen.crrGetMultiScreenResources4535View Report
Logic errorDereference of null pointerXi/exevents.cDeliverTouchEmulatedEvent145410View Report
Logic errorDereference of null pointerXi/exevents.cDeviceEventSuppressForWindow297520View Report
Logic errorDereference of null pointerdix/events.cActivateKeyboardGrab16357View Report
Logic errorDereference of null pointerexa/exa.cexaCloseScreen7642View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviderInfo2118View Report
Logic errorDereference of null pointerxkb/xkbActions.c_XkbFilterLockState3724View Report
Logic errorDereference of null pointerXext/sync.cSysCounterGetPrivate1224View Report
Logic errorDereference of null pointerrandr/rrprovider.cProcRRGetProviders1269View Report
Logic errorDereference of null pointerxkb/xkbLEDs.cXkbCheckIndicatorMaps4699View Report
Logic errorDereference of null pointerXi/exevents.cInputClientGone25788View Report
Logic errorDereference of null pointeros/access.cRemoveHost13749View Report
Logic errorDereference of null pointerrandr/rrscreen.cProcRRGetScreenInfo83917View Report
Logic errorDereference of null pointerdix/events.cCoreEnterLeaveEvent458415View Report
Logic errorDereference of null pointermi/miarc.cmiComputeArcs220533View Report
Logic errorDereference of null pointerglx/glxcmds.cvalidGlxFBConfigForWindow1229View Report
Logic errorDereference of null pointerpresent/present.cpresent_flip20113View Report
Logic errorDereference of null pointerXi/exevents.cTouchClientWantsOwnershipEvents9781View Report
Logic errorDereference of null pointerXext/panoramiX.cXineramaGetImageData125054View Report
Logic errorDereference of null pointermi/mieq.cmieqProcessDeviceEvent56417View Report
Logic errorDereference of null pointerXext/panoramiXprocs.cPanoramiXCopyArea11928View Report
Logic errorDereference of null pointermi/micmap.cmiInitVisuals50315View 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 leakXi/xipassivegrab.cProcXIPassiveGrabDevice23721View Report
Memory ErrorMemory leakdix/ptrveloc.cInitPredictableAccelerationScheme1385View Report
Memory ErrorMemory leakmi/mibitblt.cmiGetImage66913View Report
Memory ErrorMemory leakXext/shm.cProcPanoramiXShmGetImage85813View Report
Memory ErrorMemory leakdix/ptrveloc.cInitPredictableAccelerationScheme1383View Report
Memory ErrorMemory leakXi/xipassivegrab.cProcXIPassiveGrabDevice23729View Report
Memory ErrorMemory leakdix/ptrveloc.cInitPredictableAccelerationScheme1436View Report
Memory ErrorMemory leakdix/privates.cdixAllocatePrivates5226View Report
Memory ErrorMemory leakpresent/present_notify.cpresent_create_notifies996View Report
Memory ErrorMemory leakXext/shm.cProcPanoramiXShmCreatePixmap97721View Report
Logic errorOut-of-bound array accessXi/listdev.cCopyDeviceName12821View Report
Logic errorResult of operation is garbage or undefinedexa/exa_render.cexaTryDriverComposite75718View Report
Logic errorResult of operation is garbage or undefinedmi/miarc.cmiFillWideEllipse81322View Report
Logic errorResult of operation is garbage or undefinedmi/miarc.cmiFillWideEllipse83324View Report
Logic errorResult of operation is garbage or undefinedos/log.cLogVHdrMessageVerb8357View Report
Logic errorResult of operation is garbage or undefinedrender/render.cProcRenderCreateCursor163036View Report
Logic errorResult of operation is garbage or undefinedrender/render.cProcRenderCreateCursor162726View 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)dix/dixfonts.cGetFontPath17736View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dix/dispatch.cDoGetImage214513View 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)Xi/getselev.cProcXGetSelectedExtensionEvents1358View 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)Xi/queryst.cProcXQueryDeviceState1149View 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)glx/singlepixswap.cGetSeparableFilter2667View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)os/reallocarray.cxreallocarray422View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)Xi/xiquerydevice.cProcXIQueryDevice1057View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)dix/extension.cProcListExtensions3109View Report
Unix APIUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131)hw/xquartz/mach-startup/bundle-main.cstartup_trigger46418View Report
Logic errorUninitialized argument valueXext/xvdisp.cXineramifyXv178810View Report
Logic errorUninitialized argument valueXext/panoramiX.cPanoramiXConsolidate8434View Report
Logic errorUnix APIrecord/set.cIntervalListCreateSet3556View Report
Logic errorUnix APIxkb/xkbtext.cXkbIMWhichStateMaskText47814View Report
Logic errorUnix APIdix/property.cdixChangeWindowProperty27112View Report
Logic errorUnix APIxkb/xkbtext.cXkbControlsMaskText54014View Report
Logic errorUnix APIXi/exevents.cDeepCopyKeyboardClasses47939View Report
Logic errorUnix APIXext/panoramiX.cXineramaGetImageData125758View Report
Logic errorUnix APIxkb/xkbUtils.c_XkbCopyNames129120View Report
Logic errorUnix APIXext/panoramiX.cXineramaGetImageData128044View Report
Logic errorUnix APIdix/property.cdixChangeWindowProperty30613View Report
Memory ErrorUse-after-freedix/gc.cCopyGC73922View Report