This is an archive of the discontinued LLVM Phabricator instance.

Change __lsan::kMaxAllowedMallocSize literal types to unsigned long long
ClosedPublic

Authored by clemenswasser on Dec 6 2021, 1:48 PM.

Details

Summary

It is required for the Leak Sanitizer port to Windows.
The currently used unsigned long type is 64 bits wide on UNIX like systems but only 32 bits wide on Windows.
Because of that, the literal 8UL << 30 causes an integer overflow on Windows.
By changing the type of the literals to unsigned long long, we have consistent behavior and no overflows on all Platforms.

Diff Detail

Event Timeline

clemenswasser requested review of this revision.Dec 6 2021, 1:48 PM
clemenswasser created this revision.
vitalybuka accepted this revision.Dec 6 2021, 2:38 PM
This revision is now accepted and ready to land.Dec 6 2021, 2:38 PM

I assume you have no committer access?

I assume you have no committer access?

I don't know. Is that important. Can you please explain what you mean by that? :)

S

I assume you have no committer access?

I don't know. Is that important. Can you please explain what you mean by that? :)

If you asking then you unlikely have one. :) you can't push into git repo.
Someone else will need to commit patches for your, often reviewer.
I will do that.

S

I assume you have no committer access?

I don't know. Is that important. Can you please explain what you mean by that? :)

If you asking then you unlikely have one. :) you can't push into git repo.
Someone else will need to commit patches for your, often reviewer.
I will do that.

Do I have commit access, when I'm part of the LLVM GitHub Organization? I am for whatever reason a member :P

S

I assume you have no committer access?

I don't know. Is that important. Can you please explain what you mean by that? :)

If you asking then you unlikely have one. :) you can't push into git repo.
Someone else will need to commit patches for your, often reviewer.
I will do that.

Do I have commit access, when I'm part of the LLVM GitHub Organization? I am for whatever reason a member :P

I don't know. You can try "arc land" or "git push" for this patch

@vitalybuka No I don't have permissions to push. Could you please do it for me :)

Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2021, 10:38 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript