Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    4509b4eb
    Further patch rangetypes_selfuncs.c's statistics slot management. · 4509b4eb
    Tom Lane authored
    Values in a STATISTIC_KIND_RANGE_LENGTH_HISTOGRAM slot are float8,
    not of the type of the column the statistics are for.
    
    This bug is at least partly the fault of sloppy specification comments
    for get_attstatsslot()/free_attstatsslot(): the type OID they want is that
    of the stavalues entries, not of the underlying column.  (I double-checked
    other callers and they seem to get this right.)  Adjust the comments to be
    more correct.
    
    Per buildfarm.
    
    Security: CVE-2017-7484
    4509b4eb
    History
    Further patch rangetypes_selfuncs.c's statistics slot management.
    Tom Lane authored
    Values in a STATISTIC_KIND_RANGE_LENGTH_HISTOGRAM slot are float8,
    not of the type of the column the statistics are for.
    
    This bug is at least partly the fault of sloppy specification comments
    for get_attstatsslot()/free_attstatsslot(): the type OID they want is that
    of the stavalues entries, not of the underlying column.  (I double-checked
    other callers and they seem to get this right.)  Adjust the comments to be
    more correct.
    
    Per buildfarm.
    
    Security: CVE-2017-7484