elf: fix alignment calculation

identified over [here](https://github.com/vivisect/vivisect/pull/436/commits/14f9c972b3bda6b8863600d35b797d04ca38c2dc#r692441396)
This commit is contained in:
Willi Ballenthin
2021-08-19 14:45:08 -06:00
committed by GitHub
parent 3cb7573edb
commit dae7be076d
+1 -1
View File
@@ -11,7 +11,7 @@ def align(v, alignment):
if remainder == 0:
return v
else:
return v + remainder
return v + (alignment - remainder)
class CorruptElfFile(ValueError):