Branch: Tag:

2017-06-09

2017-06-09 12:51:34 by Tobias S. Josefowitz <tobij@tobij.de>

Builtin: random(mapping) no longer exposes PIKE_T_FREE to Pike

Off by one error caused random(mapping) to return elements from the
mapping's freelist.

Fixes [LysLysKOM 22108453] reported by Per Cederqvist. Thanks!

124:    (many parallel queries on a single filedescriptor) could have resulted    in a deadlock).    + o mappings +  - Fixed an off by one error in random(mapping) that randomly caused +  values of type PIKE_T_FREE from the freelist to be exposed to Pike.    -  +    Changes since Pike 8.0.388 (release 7)   ----------------------------------------------------------------------