This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Fix various compiler warnings, minor bugs, remove unused header files
AbandonedPublic

Authored by ddcc on Mar 15 2022, 11:12 PM.

Details

Summary

Tested using a standalone build. Suppress or rename variables to avoid compiler warnings, remove duplicate string.h include already contained in common.h, fix some checks against undefined macros, avoid unmapping around the zero page, modify testing assertions to have matching type due to lack of type promotion during template substitution, use capture-by-reference in lambdas.

Diff Detail

Event Timeline

ddcc created this revision.Mar 15 2022, 11:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 11:12 PM
ddcc requested review of this revision.Mar 15 2022, 11:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 11:12 PM
vitalybuka added a comment.EditedMar 16 2022, 12:38 AM

This patch is essentially squash of unrelated fixes.
It would be nice to see this as a set of small incremental patches according to https://llvm.org/docs/DeveloperPolicy.html#incremental-development

As a side note, "vanilla" scudo (i.e. the non-standalone variant) is basically on hospice support. I tried to delete it about a year ago and failed to migrate some of the testing dependencies.

I'd like to get back to deleting it at some point in the future.

ddcc abandoned this revision.Mar 16 2022, 2:18 PM

Ok, I've split this up and will close it.