On Thu, Jun 2, 2011 at 10:53 AM, Richard Hipp <d...@sqlite.org> wrote: > http://www.sqlite.org/src/ci/efb20b9da6 > > Note, however, that lemon.c is not a deliverable component of SQLite, but > rather a code generator program that generates some of the C code for > SQLite, and lemon always runs on a workstation, and so it is essentially > impossible for the calloc() to fail since modern workstations do not fail > mallocs. So this is not a real bug. But it is worth patching, all the > same. Thanks.
Well, not really. Linux tends to not fail malloc()s ever, instead running an "OOM killer" to kill tasks when the system is out of memory so as to free up memory. Death by OOM killer is a form of malloc() failure :) However, other operating systems don't do this (for example, Solaris doesn't -- malloc() can and does fail on Solaris when the system is out of memory). Nico -- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users