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

nodeHash.c

  • Kevin Grittner's avatar
    1cac8c98
    Fix bug in calculations of hash join buckets. · 1cac8c98
    Kevin Grittner authored
    Commit 8cce08f1 used a left-shift
    on a literal of 1 that could (in large allocations) be shifted by
    31 or more bits.  This was assigned to a local variable that was
    already declared to be a long to protect against overruns of int,
    but the literal in this shift needs to be declared long to allow it
    to work correctly in some compilers.
    
    Backpatch to 9.5, where the bug was introduced.
    
    Report and patch by KaiGai Kohei, slighly modified based on
    discussion.
    1cac8c98
    History
    Fix bug in calculations of hash join buckets.
    Kevin Grittner authored
    Commit 8cce08f1 used a left-shift
    on a literal of 1 that could (in large allocations) be shifted by
    31 or more bits.  This was assigned to a local variable that was
    already declared to be a long to protect against overruns of int,
    but the literal in this shift needs to be declared long to allow it
    to work correctly in some compilers.
    
    Backpatch to 9.5, where the bug was introduced.
    
    Report and patch by KaiGai Kohei, slighly modified based on
    discussion.