Bug 1847098 - Add version number of so files#103
Bug 1847098 - Add version number of so files#103Jake-Shadle merged 2 commits intorust-minidump:mainfrom
Conversation
4dd5e76 to
66010e0
Compare
66010e0 to
9f4e130
Compare
The original code would have paniced on non-utf8 paths, and would fail to return any version components if a single one failed to be parsed as a number. The new code will now gracefully fail if the filename (the rest of the path is inconsequential) is non-utf8, and now tries to handle as many version components as it can, including partial parsing of mixed alphanumeric components such as, eg 2rc5 (which was aready a test case) would be parsed as `25`
|
Thanks, however
Please note this was done on purpose |
Can you explain why? In the test data that was available, which I assume was handpicked from real crash reports to represent various different real .so versions encountered in the wild, the only one that failed to be parsed because it wasn't a number, |
Well I was not sure it was wise to parse and return something that could be misleading, Please note that I verified on several distros (ubuntu and debian with |
|
(and at some point, wether we parse it or just return 0 probably can make sense in both cases, we just need to do the same on |
See the Firefox bug for more in depth details.