Fossil SCM
Fix off-by-one error in the array sizing of an array in graph_finish().
Commit
001420ad783ffae40b4676fe050f61c077017180cd57811770d0d90af56089eb
Parent
696ae599c670ce9…
1 file changed
+1
-1
+1
-1
| --- src/graph.c | ||
| +++ src/graph.c | ||
| @@ -523,11 +523,11 @@ | ||
| 523 | 523 | |
| 524 | 524 | /* If mergeRiserFrom[X]==Y that means rail X holds a merge riser |
| 525 | 525 | ** coming up from the bottom of the graph from off-screen check-in Y |
| 526 | 526 | ** where Y is the RID. There is no riser on rail X if mergeRiserFrom[X]==0. |
| 527 | 527 | */ |
| 528 | - GraphRowId mergeRiserFrom[GR_MAX_RAIL]; | |
| 528 | + GraphRowId mergeRiserFrom[GR_MAX_RAIL+1]; | |
| 529 | 529 | |
| 530 | 530 | if( p==0 || p->pFirst==0 || p->nErr ) return; |
| 531 | 531 | p->nErr = 1; /* Assume an error until proven otherwise */ |
| 532 | 532 | |
| 533 | 533 | /* Initialize all rows */ |
| 534 | 534 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -523,11 +523,11 @@ | |
| 523 | |
| 524 | /* If mergeRiserFrom[X]==Y that means rail X holds a merge riser |
| 525 | ** coming up from the bottom of the graph from off-screen check-in Y |
| 526 | ** where Y is the RID. There is no riser on rail X if mergeRiserFrom[X]==0. |
| 527 | */ |
| 528 | GraphRowId mergeRiserFrom[GR_MAX_RAIL]; |
| 529 | |
| 530 | if( p==0 || p->pFirst==0 || p->nErr ) return; |
| 531 | p->nErr = 1; /* Assume an error until proven otherwise */ |
| 532 | |
| 533 | /* Initialize all rows */ |
| 534 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -523,11 +523,11 @@ | |
| 523 | |
| 524 | /* If mergeRiserFrom[X]==Y that means rail X holds a merge riser |
| 525 | ** coming up from the bottom of the graph from off-screen check-in Y |
| 526 | ** where Y is the RID. There is no riser on rail X if mergeRiserFrom[X]==0. |
| 527 | */ |
| 528 | GraphRowId mergeRiserFrom[GR_MAX_RAIL+1]; |
| 529 | |
| 530 | if( p==0 || p->pFirst==0 || p->nErr ) return; |
| 531 | p->nErr = 1; /* Assume an error until proven otherwise */ |
| 532 | |
| 533 | /* Initialize all rows */ |
| 534 |