Fossil

Check-in [5a282cfb]
Login

Check-in [5a282cfb]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix 'off-by-one' error within establish_proxy_tunnel() routine introduced in [e8d328cbd32].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 5a282cfb80774f3c490df570f220bd041dd0c46890650dc6a1c8fe74d80e1480
User & Date: george 2024-10-21 21:38:23
Context
2024-10-21
21:38
Fix 'off-by-one' error within establish_proxy_tunnel() routine introduced in [e8d328cbd32]. ... (Leaf check-in: 5a282cfb user: george tags: trunk)
11:16
Update the built-in SQLite to the first 3.47.0 release candidate for final validation. ... (check-in: f99e9cb3 user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_ssl.c.

403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
    blob_append(&reply, buf, len);

    bbuf = blob_buffer(&reply);
    len = blob_size(&reply);
    while(end < len) {
      if( bbuf[end]=='\n' ) {
        if( (end+1<len && bbuf[end+1]=='\n')
         || (end+2<len && bbuf[end+1]=='\r' && bbuf[end+1]=='\n')
        ){
          done = 1;
          break;
        }
      }
      end++;
    }







|







403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
    blob_append(&reply, buf, len);

    bbuf = blob_buffer(&reply);
    len = blob_size(&reply);
    while(end < len) {
      if( bbuf[end]=='\n' ) {
        if( (end+1<len && bbuf[end+1]=='\n')
         || (end+2<len && bbuf[end+1]=='\r' && bbuf[end+2]=='\n')
        ){
          done = 1;
          break;
        }
      }
      end++;
    }