GNOME Bugzilla – Bug 576842
loading a broken registry file can crash
Last modified: 2009-03-27 15:11:45 UTC
The whole binrary registry reading code is not testing for reading beyond the data region. E.g. we are using an unbound strlen. Also in case of failure partialy read object are not rolled back. Thus they are not rescanned when rereadign the registry and feature will be missing.
Created attachment 131426 [details] [review] check for not reading beyond the data area
Making things a bit more robust is not a bad idea, I guess, even if we should never actually run into this problem in practice.
Lets give it a try then :)