ARMAttribute: fix access to structs, stream and nul (#203)
authorAndreas Ziegler <ziegler@einserver.de>
Thu, 25 Oct 2018 12:31:20 +0000 (14:31 +0200)
committerEli Bendersky <eliben@users.noreply.github.com>
Thu, 25 Oct 2018 12:31:20 +0000 (05:31 -0700)
commitc2f6fe363f0bbeb595946204b3c41d4034126840
tree800c0128353865f6a151092dd92627fc66205331
parent9f3bf5db24a3122b4a0e199289876c49506de9cc
ARMAttribute: fix access to structs, stream and nul (#203)

The __init__ function of ARMAttribute has two parameters
structs and stream through which the caller can pass in the
relevant objects (ARMAttributesSubsubsection does that after
seeking to the right position in stream).

The accesses for TAG_SECTION and TAG_SYMBOL, however, were
referring to non-existing members instead of the parameters.

Additionally, one assertion tries to access an undefined
'null_byte' variable which should be 'nul' instead.
elftools/elf/sections.py