This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [COFF] Fix parsing version numbers with leading zeros
ClosedPublic

Authored by mstorsjo on Oct 4 2020, 12:47 PM.

Details

Summary

Parse the components as decimal, instead of decuding the base from the string. This avoids ambiguity if the second number contains leading zeros, which previously were parsed as indicating an octal number.

MS link.exe doesn't support hexadecimal numbers in the version numbers, neither in /version nor in /subsystem.

Diff Detail

Event Timeline

mstorsjo created this revision.Oct 4 2020, 12:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2020, 12:47 PM
mstorsjo requested review of this revision.Oct 4 2020, 12:47 PM
rnk accepted this revision.Oct 5 2020, 11:01 AM

lgtm

This revision is now accepted and ready to land.Oct 5 2020, 11:01 AM
This revision was landed with ongoing or failed builds.Oct 5 2020, 1:08 PM
This revision was automatically updated to reflect the committed changes.