Fossil

Check-in [5a9ac6ca3e]
Login

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

Overview
Comment:Fix segfault in /artifact introduced by check-in [b699040d701464ce] and reported [https://fossil-scm.org/forum/forumpost/a073f05cc3|on the forum].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5a9ac6ca3e01cc09b52ac9e8d0e7ab06dbc6c0f0f9f9b64ac1c2da826d34d4b1
User & Date: drh 2020-08-16 16:06:04.949
References
2020-08-16
16:49
Fixed file_extension() to behave like its docs say it does, which would have made [5a9ac6ca3e] unnecessary. check-in: f95e47b611 user: stephan tags: trunk
Context
2020-08-16
16:35
Fix the release version on the home page. check-in: 4c45033033 user: drh tags: trunk
16:06
Fix segfault in /artifact introduced by check-in [b699040d701464ce] and reported [https://fossil-scm.org/forum/forumpost/a073f05cc3|on the forum]. check-in: 5a9ac6ca3e user: drh tags: trunk
15:52
Reworked fossil.toast to support normal/warning/error-level toasts. Alas, animating a toast's appearance and disappearance proved to be beyond my current skills. check-in: 4368f52961 user: stephan tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
        const char *z, *zFileName, *zExt;
        z = blob_str(&content);
        zFileName = db_text(0,
         "SELECT name FROM mlink, filename"
         " WHERE filename.fnid=mlink.fnid"
         "   AND mlink.fid=%d",
         rid);
        zExt = file_extension(zFileName);
        if( zLn ){
          output_text_with_line_numbers(z, blob_size(&content),
                                        zFileName, zLn);
        }else if( zExt && zExt[1] ){
          @ <pre>
          @ <code class="language-%s(zExt)">%h(z)</code>
          @ </pre>







|







2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
        const char *z, *zFileName, *zExt;
        z = blob_str(&content);
        zFileName = db_text(0,
         "SELECT name FROM mlink, filename"
         " WHERE filename.fnid=mlink.fnid"
         "   AND mlink.fid=%d",
         rid);
        zExt = zFileName ? file_extension(zFileName) : 0;
        if( zLn ){
          output_text_with_line_numbers(z, blob_size(&content),
                                        zFileName, zLn);
        }else if( zExt && zExt[1] ){
          @ <pre>
          @ <code class="language-%s(zExt)">%h(z)</code>
          @ </pre>