Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 813bd6d24d0106b7f52bbcbb9777b2c0a98a21f25f9bba1c039f9a97bf13db7b
Ticket: 7c64aa5e1a633176212261d21419d93a8a597347
Another uninitialized-variable bug in BRE-mode parsing
User & Date: tgl on 2021-02-19 03:51:08
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    It turns out that the bug reported in ticket 1dab713a3808489ef0a23be683b3d2058fbd3f27 has a sibling.
    
    % regexp -inline {(?b).\{1,10\}} {abcdef}
    a
    
    The correct result to that is "abcdef", but the quantifier is being read as non-greedy.  The fix is to
    change "RET('}')" to "RETV('}', 1)" in next().  See also
    
    https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b5a66e7353ba65c11c5fc6a79b72213bde8dbe44
    
  5. foundin changed to: "8.6.10"
  6. is_private changed to: "0"
  7. login: "tgl"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "26864b65f1c6ce8bda86f87ed9c554e19ac0390d"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "tgl"
  14. subsystem changed to: "43. Regexp"
  15. title changed to:
    Another uninitialized-variable bug in BRE-mode parsing
    
  16. type changed to: "Bug"