This is an archive of the discontinued LLVM Phabricator instance.

[esan] Fix ESan test failure on Debian Sid bot
ClosedPublic

Authored by zhaoqin on Oct 3 2016, 9:10 AM.

Details

Summary

Handles multiple early allocation requests from dlsym.

Existing code handles single early allocation request from dlsym.
This CL extends the existing code to handle multiple requests with a larger local static buffer.

Event Timeline

zhaoqin updated this revision to Diff 73290.Oct 3 2016, 9:10 AM
zhaoqin retitled this revision from to [esan] Fix ESan test failure on Debian Sid bot.
zhaoqin updated this object.
zhaoqin added a reviewer: bruening.
bruening edited edge metadata.Oct 3 2016, 9:23 AM

Handles early allocation from dlsym by allocating memory from a local
static buffer.

The existing code already attempts to handle early allocation, using a local static buffer: so this commit message seems to describe the CL from months ago. Please describe what's *new* in the commit message.

zhaoqin updated this object.Oct 3 2016, 9:32 AM
zhaoqin edited edge metadata.

Update the commit message.

zhaoqin updated this object.Oct 3 2016, 9:32 AM
bruening requested changes to this revision.Oct 3 2016, 9:50 AM
bruening edited edge metadata.
bruening added inline comments.
lib/esan/esan_interceptors.cpp
464

Variable name style violation.

The consensus is to match LLVM style in general. The params to the interceptors here do not to match the common interceptors. It seems like this should either be under_score_style, or it and the 2 below should be CamelCase.

469

Hmm, unsigned underflow is defined, though it feels a little hacky

477

Spelling

512

No need for the "res" var

This revision now requires changes to proceed.Oct 3 2016, 9:50 AM
zhaoqin updated this revision to Diff 73316.Oct 3 2016, 11:47 AM
zhaoqin edited edge metadata.
zhaoqin marked 4 inline comments as done.

PTAL

zhaoqin updated this revision to Diff 73321.Oct 3 2016, 12:06 PM
zhaoqin edited edge metadata.

remove prefix k_

bruening accepted this revision.Oct 3 2016, 1:03 PM
bruening edited edge metadata.
This revision is now accepted and ready to land.Oct 3 2016, 1:03 PM
This revision was automatically updated to reflect the committed changes.