Fossil

Check-in [83828327]
Login

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

Overview
Comment:Fix a potential infinite loop in the graph generator for overly-complex change graphs.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:838283273ac6323706c331e08f7ac4b97988b139
User & Date: drh 2011-02-07 18:21:28
Context
2011-02-07
20:53
Provide an interface to the max-upload setting. check-in: c0c3b081 user: drh tags: trunk
18:21
Fix a potential infinite loop in the graph generator for overly-complex change graphs. check-in: 83828327 user: drh tags: trunk
18:02
Ignore duplicate tags when interpreting git-fast-export text for import. check-in: 355bd996 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/graph.c.

457
458
459
460
461
462
463
464

465
466

  /*
  ** Find the maximum rail number.
  */
  p->mxRail = 0;
  for(pRow=p->pFirst; pRow; pRow=pRow->pNext){
    if( pRow->iRail>p->mxRail ) p->mxRail = pRow->iRail;
    if( pRow->mergeOut>p->mxRail ) p->mxRail = pRow->mergeOut;
    while( pRow->mergeDown>((1<<(p->mxRail+1))-1) ) p->mxRail++;

  }
}








|
>
|
|
>
457
458
459
460
461
462
463
464
465
466
467
468
  /*
  ** Find the maximum rail number.
  */
  p->mxRail = 0;
  for(pRow=p->pFirst; pRow; pRow=pRow->pNext){
    if( pRow->iRail>p->mxRail ) p->mxRail = pRow->iRail;
    if( pRow->mergeOut>p->mxRail ) p->mxRail = pRow->mergeOut;
    while( p->mxRail<GR_MAX_RAIL && pRow->mergeDown>((1<<(p->mxRail+1))-1) ){
      p->mxRail++;
    }
  }
}