Fossil

Check-in [65dbc19e]
Login

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

Overview
Comment:Attempt to squelch stdout errors from manifest parsing when it encounters a non-manifest. Reported at forum post d6a8e3b2a843c498.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 65dbc19eaefefa98b6532986f45ed5f843d00d36e8ac92a5e281a0200826c2d9
User & Date: stephan 2021-09-08 11:03:03
Context
2021-09-08
11:11
Caught more instances of the previous commit's fix. ... (check-in: 992b62fa user: stephan tags: trunk)
11:03
Attempt to squelch stdout errors from manifest parsing when it encounters a non-manifest. Reported at forum post d6a8e3b2a843c498. ... (check-in: 65dbc19e user: stephan tags: trunk)
01:01
Fix the /vpatch webpage output, apparently broken by check-in [3a561322cafbc337]. Forum post 2a0e4c729e. ... (check-in: ebcad739 user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/manifest.c.

499
500
501
502
503
504
505

506

507
508
509
510
511
512
513
  remove_pgp_signature((const char**)&z, &n);

  /* Verify that the first few characters of the artifact look like
  ** a control artifact.
  */
  if( n<10 || z[0]<'A' || z[0]>'Z' || z[1]!=' ' ){
    blob_reset(pContent);

    blob_appendf(pErr, "line 1 not recognized");

    return 0;
  }
  /* Then verify the Z-card.
  */
#if 1
  /* Disable this ***ONLY*** (ONLY!) when testing hand-written inputs
     for card-related syntax errors. */







>
|
>







499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
  remove_pgp_signature((const char**)&z, &n);

  /* Verify that the first few characters of the artifact look like
  ** a control artifact.
  */
  if( n<10 || z[0]<'A' || z[0]>'Z' || z[1]!=' ' ){
    blob_reset(pContent);
    if(pErr!=0){
      blob_appendf(pErr, "line 1 not recognized");
    }
    return 0;
  }
  /* Then verify the Z-card.
  */
#if 1
  /* Disable this ***ONLY*** (ONLY!) when testing hand-written inputs
     for card-related syntax errors. */