Opened 14 years ago
Closed 14 years ago
#3271 closed defect (fixed)
GDALColorTable.GetColorEntry() segfault
Reported by: | lpinner | Owned by: | hobu |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.0 |
Component: | PythonBindings | Version: | 1.6.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
GDALColorTable.GetColorEntry(n) segfaults when n > GDALColorTable.GetCount()
Obviously, normally I wouldn't attempt to get a colour table entry that doesn't exist, it was just a logic error that I did so, but the method shouldn't segfault, rather return None or raise an exception.
Test script and dataset attached. Occurs on WinXP and Ubuntu 9.04
Attachments (1)
Change History (2)
by , 14 years ago
comment:1 by , 14 years ago
Milestone: | → 1.7.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This was fixed some time ago in trunk (in r17191)
It now throws an exception
Side note : the last valid index is GDALColorTable.GetCount() - 1.