]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Merge pull request #7980 from gromit1811/fix_ospf6_lsa_str_oob
authorRuss White <russ@riw.us>
Tue, 9 Feb 2021 12:36:29 +0000 (07:36 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Feb 2021 12:36:29 +0000 (07:36 -0500)
Fix ospf6 LSA formatting out-of-bounds access

1  2 
ospf6d/ospf6_intra.c

index fd154e7ee53e49b5af0c74d9f0bbf70788c9e826,a8a469136d09889aa958c6f525c80702ef8ea34a..b51aa17960711277da65eb754ec6562cea526097
@@@ -901,9 -900,9 +902,9 @@@ static char *ospf6_intra_prefix_lsa_get
                                        prefix->prefix_length);
                                return (buf);
                        }
-               } while (current <= end);
+               }
        }
 -      return (buf);
 +      return NULL;
  }
  
  static int ospf6_intra_prefix_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,