Overview
SHA1 Hash: | 6eca3132fe0bf285424b41c8cac0f3195a101825 |
---|---|
Date: | 2007-08-09 11:55:52 |
User: | drh |
Comment: | Fix an off-by-one error that can cause a segfault during sync. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/vfile.c from [47b5a77023] to [2bf3326797].
@@ -39,11 +39,11 @@ ** If the UUID is not found and phantomize is 1, then attempt to ** create a phantom record. */ int uuid_to_rid(const char *zUuid, int phantomize){ int rid, sz; - char z[UUID_SIZE]; + char z[UUID_SIZE+1]; sz = strlen(zUuid); if( sz!=UUID_SIZE || !validate16(zUuid, sz) ){ return 0; }