Skip to content

Commit 9c31e0a

Browse files
committed
libs2eplugins: warning fixes
Signed-off-by: Vitaly Chipounov <vitaly@chipounov.fr>
1 parent 64074bc commit 9c31e0a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs2eplugins/src/s2e/Plugins/OSMonitors/Support/GuestCodeHooking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void GuestCodeHooking::erase(S2EExecutionState *state, GuestCodeHooking::GCHPred
163163
bool needFlush = false;
164164
auto eraser = [&](Hooks &hooks) {
165165
std::vector<HookLocation> toErase;
166-
for (const auto it : hooks) {
166+
for (const auto &it : hooks) {
167167
if (doErase(it.first, it.second)) {
168168
toErase.push_back(it.first);
169169
needFlush = true;

libs2eplugins/src/s2e/Plugins/VulnerabilityAnalysis/CGCInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ bool CGCInterface::updateCoverage(S2EExecutionState *state) {
350350
continue;
351351
}
352352

353-
for (auto tbit : tbs) {
353+
for (const auto &tbit : tbs) {
354354
bool covered = false;
355355
if (!bmp->setCovered(index, tbit.startOffset, tbit.size, covered)) {
356356
success = false;

0 commit comments

Comments
 (0)