Niall O'Reilly <[email protected]> wrote:
> This and my Makefile follow below, as I understand attachments
> are not supported on this list.

Your code assumes, in several places, that strings passed to collation function 
are NUL-terminated. They don't have to be - that's why lengths are also passed. 
I think this may be causing the problem you are seeing: when the string comes 
from a literal (as in x < '' ) it just may happen to be NUL-terminated, but 
when it comes straight from the database, it may not be, and you are cheerfully 
reading garbage past the end of buffer.

Your test program, of course, always happens to pass NUL-terminated strings.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to