You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The official dcheck enabled builds for Chrome are huge and have maximum section offsets of around 320 MB which is beyond the arbitrary hard-coded limit of 256 MiB in pefile.py. This causes symbol uploads to fail for these builds.
The limit should be increased to avoid this, and arguably the handling of the maximum should be changed so that an exception is thrown because the warning messages that are printed when invoking pefile.py are suppressed or otherwise hidden when using pefile.py as an import.
I have created a local change for Chrome that centralizes and increases the limit to 1 GiB.
The text was updated successfully, but these errors were encountered:
In an attempt to detect corrupt files pefile.py imposes an arbitrary
maximum offset of 0x10000000 (256 MiB). However Chrome's dcheck official
builds exceed that limit which means that uploading of symbols started
failing. This change increases the limit to 1 GiB.
An issue has been filed against the pefile project for a long-term fix
but this fix will unblock dcheck official builds for now.
erocarrera/pefile#396
Bug: 329661971
Change-Id: Ica4905a61216a11e4ad56734977582133bc26684
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5377931
Commit-Queue: Bruce Dawson <[email protected]>
Reviewed-by: Alex Gough <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1274350}
It's pretty simple - I just centralized the maximum offset limit and then raised it. I could easily make a PR for this change for here, if that would be accepted.
Or, maybe the limit should just be removed - maybe it has served its purpose and no longer makes sense.
Or, maybe the limit should be a constructor parameter. I haven't checked to see how much work this would be but at a high level this would be a cleaner solution.
Finally, if the limit is reached then I think an exception should be thrown so that pefile.py doesn't fail in silent and mysterious ways.
The official dcheck enabled builds for Chrome are huge and have maximum section offsets of around 320 MB which is beyond the arbitrary hard-coded limit of 256 MiB in pefile.py. This causes symbol uploads to fail for these builds.
The limit should be increased to avoid this, and arguably the handling of the maximum should be changed so that an exception is thrown because the warning messages that are printed when invoking pefile.py are suppressed or otherwise hidden when using pefile.py as an import.
I have created a local change for Chrome that centralizes and increases the limit to 1 GiB.
The text was updated successfully, but these errors were encountered: