AUTORECODE: Avoid use-after-free error with TEMPORARY. 20130408010504/pspp 20130409010502/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 7 Apr 2013 22:06:35 +0000 (15:06 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 7 Apr 2013 22:06:35 +0000 (15:06 -0700)
commit3b9dfd387fdcbf5c2eb3c1a578990b58f4157ea5
treee9eea4e760110af6ee872bf756690012d194e1a1
parent6c65a1f0780e9f378d8bdfb7340228b1feee291b
AUTORECODE: Avoid use-after-free error with TEMPORARY.

When TEMPORARY is in effect, proc_commit() destroys the temporary
dictionary.  This means that any procedure that does not somehow disable
temporary transformations and refers to a variable following proc_commit()
has a use-after-free error.

Until now, AUTORECODE had this problem.  This commit fixes it and adds a
test.

Bug #32757.
src/language/stats/autorecode.c
tests/language/stats/autorecode.at