tum-i4 / sip-oblivious-hashing

7 stars 4 forks source link

[CLOSED] OH instrumented binary seg faults for stringsearch program from mibench #92

Open mr-ma opened 6 years ago

mr-ma commented 6 years ago

Issue by anahitH Thursday Jun 07, 2018 at 08:37 GMT Originally opened as https://github.com/tum-i22/sip-oblivious-hashing/issues/92


mr-ma commented 6 years ago

Comment by anahitH Thursday Jun 07, 2018 at 10:08 GMT


The crash happens for office ispell program too

mr-ma commented 6 years ago

Comment by anahitH Thursday Jun 07, 2018 at 10:49 GMT


OH tries to hash variable which is null. It looks roughly like this

int* p = ...
while (p) {
   // do smth
}

When pointer p is data indep OH hashes it for all it's uses in loop condition, including the one when it's null. The crash happens when hashing p when it's null.