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

parse_expr.c

  • Heikki Linnakangas's avatar
    350ab443
    stringToNode() and deparse_expression_pretty() crash on invalid input, · 350ab443
    Heikki Linnakangas authored
    but we have nevertheless exposed them to users via pg_get_expr(). It would
    be too much maintenance effort to rigorously check the input, so put a hack
    in place instead to restrict pg_get_expr() so that the argument must come
    from one of the system catalog columns known to contain valid expressions.
    
    Per report from Rushabh Lathia. Backpatch to 7.4 which is the oldest
    supported version at the moment.
    350ab443
    History
    stringToNode() and deparse_expression_pretty() crash on invalid input,
    Heikki Linnakangas authored
    but we have nevertheless exposed them to users via pg_get_expr(). It would
    be too much maintenance effort to rigorously check the input, so put a hack
    in place instead to restrict pg_get_expr() so that the argument must come
    from one of the system catalog columns known to contain valid expressions.
    
    Per report from Rushabh Lathia. Backpatch to 7.4 which is the oldest
    supported version at the moment.