xserver-multidpi/exa
Alan Coopersmith 6c06c268ad Skip damage calls if DamageCreate fails in exa functions
Fixes parfait errors such as:
   Null pointer dereference (CWE 476): Write to null pointer pDamage
        at line 1833 of miext/damage/damage.c in function 'DamageRegister'.
          Function DamageCreate may return constant 'NULL' at line 1775,
              called at line 232 of exa/exa_migration_mixed.c
              in function 'exaPrepareAccessReg_mixed'.
          Constant 'NULL' passed into function DamageRegister,
              argument pDamage, from call at line 237.
          Null pointer introduced at line 1775 of miext/damage/damage.c
              in function 'DamageCreate'.
   Null pointer dereference (CWE 476): Write to null pointer pDamage
        at line 1833 of miext/damage/damage.c in function 'DamageRegister'.
          Function DamageCreate may return constant 'NULL' at line 1775,
              called at line 104 of exa/exa_mixed.c
              in function 'exaCreatePixmap_mixed'.
          Constant 'NULL' passed into function DamageRegister,
              argument pDamage, from call at line 109.
          Null pointer introduced at line 1775 of miext/damage/damage.c
              in function 'DamageCreate'.

Checks are similar to handling results of other calls to DamageCreate.

[ This bug was found by the Parfait 1.3.0 bug checking tool.
  http://labs.oracle.com/pls/apex/f?p=labs:49:::::P49_PROJECT_ID:13 ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-10-14 17:56:44 -07:00
..
exa_accel.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
exa_classic.c damage: Implicitly unregister on destroy 2013-09-10 14:28:09 -04:00
exa_driver.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
exa_glyphs.c render/exa: use glyph picture accessors 2012-05-21 12:59:20 +01:00
exa_migration_classic.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
exa_migration_mixed.c Skip damage calls if DamageCreate fails in exa functions 2013-10-14 17:56:44 -07:00
exa_mixed.c Skip damage calls if DamageCreate fails in exa functions 2013-10-14 17:56:44 -07:00
exa_offscreen.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
exa_priv.h EXA: Track source/mask pixmaps more explicitly for Composite fallback regions. 2012-10-29 09:06:44 -07:00
exa_render.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
exa_unaccel.c EXA: Track source/mask pixmaps more explicitly for Composite fallback regions. 2012-10-29 09:06:44 -07:00
exa.c Fix formatting of address operators 2012-12-05 18:09:48 -06:00
exa.h exa: pixmap sharing infrastructure (v3) 2012-07-07 10:37:10 +01:00
Makefile.am Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00