Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 65d058459f43512d5cc7b8f65100567e159d05b8
Ticket: a3c3508599b32dfda5e83698aa9e301273b5f7cf
backwards test in newcolor()
User & Date: tgl on 2015-09-16 17:22:03
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I was just going through deltas between Tcl's regexp code and Postgres' version of the code, and I found what appears to be a typo in your version of the fix for the color-overflow problem.  In newcolor(), regc_color.c line 262 in 8.6.4, you have:
    
    	if (n < MAX_COLOR + 1) {
    	    n = MAX_COLOR + 1;
    	}
    
    We have that test as "if (n > MAX_COLOR + 1)" which I think is correct: the point is to limit the value of n to MAX_COLOR+1, not to force it up to that instantly.
    
    The effect of this is just some inefficiency, ie colormaps will bloat to 32K entries as soon as they exceed NINLINECDS, but still it's a bug.
    
  5. foundin changed to: "8.6.4"
  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: "backwards test in newcolor()"
  16. type changed to: "Bug"