mirror of
https://github.com/mandiant/capa.git
synced 2026-07-04 11:47:12 -07:00
elf: fix alignment calculation
identified over [here](https://github.com/vivisect/vivisect/pull/436/commits/14f9c972b3bda6b8863600d35b797d04ca38c2dc#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