Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

varbit.h

  • Noah Misch's avatar
    31400a67
    Predict integer overflow to avoid buffer overruns. · 31400a67
    Noah Misch authored
    Several functions, mostly type input functions, calculated an allocation
    size such that the calculation wrapped to a small positive value when
    arguments implied a sufficiently-large requirement.  Writes past the end
    of the inadvertent small allocation followed shortly thereafter.
    Coverity identified the path_in() vulnerability; code inspection led to
    the rest.  In passing, add check_stack_depth() to prevent stack overflow
    in related functions.
    
    Back-patch to 8.4 (all supported versions).  The non-comment hstore
    changes touch code that did not exist in 8.4, so that part stops at 9.0.
    
    Noah Misch and Heikki Linnakangas, reviewed by Tom Lane.
    
    Security: CVE-2014-0064
    31400a67
    History
    Predict integer overflow to avoid buffer overruns.
    Noah Misch authored
    Several functions, mostly type input functions, calculated an allocation
    size such that the calculation wrapped to a small positive value when
    arguments implied a sufficiently-large requirement.  Writes past the end
    of the inadvertent small allocation followed shortly thereafter.
    Coverity identified the path_in() vulnerability; code inspection led to
    the rest.  In passing, add check_stack_depth() to prevent stack overflow
    in related functions.
    
    Back-patch to 8.4 (all supported versions).  The non-comment hstore
    changes touch code that did not exist in 8.4, so that part stops at 9.0.
    
    Noah Misch and Heikki Linnakangas, reviewed by Tom Lane.
    
    Security: CVE-2014-0064