Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] elf_open in tcf-agent's tcf_elf.c throws exception

Hi Anders,

 

It is a bug.

Fixed.

 

Thanks!

Eugene

 

From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx] On Behalf Of Conradi, Anders
Sent: Wednesday, March 01, 2017 12:05 AM
To: tcf-dev@xxxxxxxxxxx
Subject: [tcf-dev] elf_open in tcf-agent's tcf_elf.c throws exception

 

Hi,

 

I just noticed that elf_open in tcf_elf.c sometimes throws exceptions. To me this is unexcepted. The function elf_open is not documented to throw exceptions. It is documented to return NULL on failure. The reason it throws is that it calls create_elf_cache, which calls create_symbol_names_hash, which calls unpack_elf_symbol_info, which throws exceptions. It is documented that unpack_elf_symbol_info throws exception.

 

I think this is a bug, but perhaps it is just a bug in the documentation for elf_open. What do you think?

 

Regards,

Anders

 

----------------------------------------------------------------------
Intel Sweden AB
Registered Office: Isafjordsgatan 30B, 164 40 Kista, Stockholm, Sweden
Registration Number: 556189-6027

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


Back to the top