[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Division Bugs
From: |
Michael Zimmermann |
Subject: |
Division Bugs |
Date: |
Sat, 4 Apr 2015 22:49:28 +0200 |
I think I found a bug but I'm not sure.
http://git.savannah.gnu.org/gitweb/?p=grub.git;a=blob;f=grub-core/lib/division.c;h=920a79f18b7a7180bc5bcf18987c043b1df56687;hb=refs/heads/master#l53
at line 53 u write a value to ro:
*ro = r;
now take a look at the callers:
http://git.savannah.gnu.org/gitweb/?p=grub.git;a=blob;f=grub-core/kern/compiler-rt.c;h=d4cc15513aabea3061bd2dddc896b105bb180a5b;hb=refs/heads/master
some look like this which should be ok:
grub_divmod64s (a, b, &ret);
but there are others like this:
grub_divmod64s (a, b, 0);
I got a "data abort, translation fault on write" exception after
compiling a lib which uses that division function.
- Division Bugs,
Michael Zimmermann <=