• Tom Lane's avatar
    Fix RelationBuildPartitionKey's processing of partition key expressions. · 3492a0af
    Tom Lane authored
    Failure to advance the list pointer while reading partition expressions
    from a list results in invoking an input function with inappropriate data,
    possibly leading to crashes or, with carefully crafted input, disclosure
    of arbitrary backend memory.
    
    Bug discovered independently by Álvaro Herrera and David Rowley.
    This patch is by Álvaro but owes something to David's proposed fix.
    Back-patch to v10 where the issue was introduced.
    
    Security: CVE-2018-1052
    3492a0af
create_table.out 37.6 KB