We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e80c5 commit d336834Copy full SHA for d336834
src/PE/layout_check.cpp
@@ -137,14 +137,14 @@ class LayoutChecker {
137
}
138
139
bool contains(uint64_t va) const {
140
+ if (va == 0) {
141
+ return true;
142
+ }
143
return vaddr_start <= va && va < vaddr_end;
144
145
146
bool contains(optional<uint64_t> va) const {
- if (va.value_or(0) == 0) {
- return true;
- }
147
- return contains(*va);
+ return contains(va.value_or(0));
148
149
150
private:
0 commit comments