[sqlite] Potential for Segmentation Violation/Fault in sqlite 3.8.11.1

2015-08-26 Thread Dan Kennedy
On 08/25/2015 11:36 PM, Bill Parker wrote: > Hello All, > > In reviewing source code files in sqlite 3.8.11.1, I found some > instances of calls to Tcl_Alloc() which are not checked for a return > value of NULL, indicating failure in directory '/tea/generic', file > 'tclsqlite3.c'.

[sqlite] Potential for Segmentation Violation/Fault in sqlite 3.8.11.1

2015-08-25 Thread Richard Hipp
On 8/25/15, Dan Kennedy wrote: > On 08/25/2015 11:36 PM, Bill Parker wrote: >> >> The patch file below should catch and handle all conditions where >> Tcl_Alloc() is called, but are NOT checked for a return value of NULL: > > Does Tcl_Alloc() actually return NULL if a malloc fails? I thought if >

[sqlite] Potential for Segmentation Violation/Fault in sqlite 3.8.11.1

2015-08-25 Thread Bill Parker
Hello All, In reviewing source code files in sqlite 3.8.11.1, I found some instances of calls to Tcl_Alloc() which are not checked for a return value of NULL, indicating failure in directory '/tea/generic', file 'tclsqlite3.c'. Additionally, in the event of failure, there are some cases