]> sourceware.org Git - libabigail.git/commit
Harden function_decl::get_pretty_representation()
authorDodji Seketeli <dodji@redhat.com>
Wed, 26 Aug 2015 06:28:39 +0000 (08:28 +0200)
committerDodji Seketeli <dodji@redhat.com>
Sat, 29 Aug 2015 14:23:15 +0000 (16:23 +0200)
commit1bac4fd992ef09510c68996674093f186174f8b7
tree56707307ed06fd87d5b3c0640e8cd1cf13f6de4b
parent173a2c9939c612b6f9216597747694b35d97629d
Harden function_decl::get_pretty_representation()

This function can abort when called on a function_decl that is not a
member function.  This patch addresses that issue.

* src/abg-ir.cc (function_decl::get_pretty_representation): Make
sure the function type is a member function before calling
get_member_function_is_{virtual,ctor,dtor,const}.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc
This page took 0.033833 seconds and 5 git commands to generate.