HomePhorge

(#11996) Fix graph cycle reporting order after hash changes.
3fb0938827b5Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(#11996) Fix graph cycle reporting order after hash changes.

CVE-2011-4815 changed the order of hash processing, and our simple graph class
is heavily based on them. This revealed that the content of cycle reporting
is dependent on the processing order of a hash - and, so, is no longer
consistent.

This updates the code to spend the extra cycle sorting inside and outside the
cycle report - which, since we are in a failure state anyway, seems like a
reasonable use of CPU cycles in return for consistent results.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU3fb0938827b5: (#11996) Fix graph cycle reporting order after hash changes. (authored by Daniel Pittman <daniel@puppetlabs.com>).Jan 18 2012, 10:50 PM