Skip to content

Commit 9fced15

Browse files
committed
uintptr_t: prevent stubbing and renaming
1 parent 7331b1d commit 9fced15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OICodeGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ OICodeGen::OICodeGen(const Config &c, SymbolService &s)
9898
// however, for now we just define the `knownTypes` list to be empty, as this
9999
// will make it easier to selectively revert our changes if it turns out that
100100
// there are issues with the new approach.
101-
knownTypes = {"IPAddress"};
101+
knownTypes = {"IPAddress", "uintptr_t"};
102102

103103
sizeMap["SharedMutex"] = sizeof(folly::SharedMutex);
104104
}
@@ -2057,7 +2057,7 @@ void OICodeGen::addTypeToName(drgn_type *type, std::string name) {
20572057
tIndex++;
20582058
}
20592059

2060-
if (name != "uint8_t" && name != "uint32_t") {
2060+
if (name != "uint8_t" && name != "uint32_t" && name != "uintptr_t") {
20612061
name = name + "__" + std::to_string(tIndex);
20622062
} else {
20632063
VLOG(1) << "Not renaming " << name;

0 commit comments

Comments
 (0)