]> sourceware.org Git - libabigail.git/commitdiff
Fix infinite loop in peel_typedef_pointer_or_reference_type
authorDodji Seketeli <dodji@redhat.com>
Sun, 4 Oct 2015 09:30:57 +0000 (11:30 +0200)
committerDodji Seketeli <dodji@redhat.com>
Sun, 4 Oct 2015 11:51:25 +0000 (13:51 +0200)
* src/abg-ir.cc (peel_typedef_pointer_or_reference_type): Make
sure the variable tested in the condition is the one updated by
the loop.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc

index 832cc5884c53ac2addba87c02aeb61991b6f4bf4..9b30959fec1925171aa90748a5663125fe559843 100644 (file)
@@ -3286,7 +3286,7 @@ type_base_sptr
 peel_typedef_pointer_or_reference_type(const type_base_sptr type)
 {
   type_base_sptr typ  = type;
-  while (is_typedef(type) || is_pointer_type(type) || is_reference_type(type))
+  while (is_typedef(typ) || is_pointer_type(typ) || is_reference_type(typ))
     {
       if (typedef_decl_sptr t = is_typedef(typ))
        typ = peel_typedef_type(t);
This page took 0.051729 seconds and 5 git commands to generate.