mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
elf: fix alignment calculation
identified over [here](14f9c972b3 (r692441396))
This commit is contained in:
@@ -11,7 +11,7 @@ def align(v, alignment):
|
||||
if remainder == 0:
|
||||
return v
|
||||
else:
|
||||
return v + remainder
|
||||
return v + (alignment - remainder)
|
||||
|
||||
|
||||
class CorruptElfFile(ValueError):
|
||||
|
||||
Reference in New Issue
Block a user