Differences From Artifact [cc02fc5b7e]:
- File src/comformat.c — part of check-in [4c3e1728e1] at 2025-07-23 15:58:49 on branch trunk — Minor optimization: replace calls to mprintf("%s", X) with fossil_strdup(X). (user: danield size: 31656) [more...]
To Artifact [71069fe975]:
- File src/comformat.c — part of check-in [59879abe16] at 2025-09-21 04:16:00 on branch trunk — Fix an out-of-bounds array access in the function to decode a UTF-8 sequence (similar to a problem reported on the SQLite Forum: https://sqlite.org/forum/forumpost/184b372388). (user: florian size: 31656) [more...]
| ︙ | |||
301 302 303 304 305 306 307 | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | - + |
}
switch( cchUTF8 ){
case 4:
*pUtf32 =
( (z[0] & 0x0f)<<18 ) |
( (z[1] & 0x3f)<<12 ) |
( (z[2] & 0x3f)<< 6 ) |
|
| ︙ |