Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-11-16
05:03 • Closed ticket [1832612fff]: fixempties() can traverse free list plus 3 other... artifact: d03a1366b4 user: dgp
05:03 • Ticket [1832612fff]: 4 changes artifact: 1715b65cb9 user: dgp
00:03 • Add attachment fixempties.patch to ticket [1832612fff] artifact: 1cb6d48455 user: dgp
00:03 • Ticket [1832612fff] fixempties() can traverse free list status still Open wi... artifact: fb3bcb5566 user: dgp
2007-11-15
17:00 • New ticket [1832612fff]. artifact: 98fe6a362d user: dgp

fixempties() can traverse free list

Closed / Fixed1832612fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-11-15 17:00:35
Attached is patch to fix a
buggy loop in the fixempties()
routine.

The loop traverses linked lists,
and the core of the loop can
remove an item from the list.
The loop properly handles the
case where the current item is
removed by figuring out where to
go next before the item pointing
the way might get removed.

However, it doesn't handle the
case where the state where we're
going next gets removed.  In that
case, the loop follows that
deleted state, and ends up 
walking the freelist of discarded
states.  Those discarded states
are trivial data-less states, so
there's no harm, but we might be
spending significant effort walking
dead states.
dgpplain2007-11-16 00:03:34
File Added - 254457: fixempties.patch

Logged In: YES 
user_id=80530
Originator: YES


Here's that patch for the HEAD,
which I'm committing now.

Will commit same fix for 8.4.17,
but holding that back since I've
got more regexp debugging underway
in my 8.4 sandbox at the moment.

File Added: fixempties.patch
dgpplain2007-11-16 05:03:43
Logged In: YES 
user_id=80530
Originator: YES


fixed for 8.4.17 too.
dgp Closed ticket [1832612fff]. [History diff]2007-11-16 05:03:44
Log in (anonymous is fine) to add a comment.

Attachments: