← Commit list

8ce1ad309

Mike Frysinger
Mike Frysinger
2010-11-16
FAILED Duration: 275s

Subject

depmod.pl: add recursive sanity check

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

examples/depmod.pl+3 -0
@@ -173,6 +173,9 @@ sub add_mod_deps
$depth .= " ";
warn "${depth}loading deps of module: $this_module\n" if $verbose;
+ if (length($depth) > 50) {
+ die "too much recursion (circular dependencies in modules?)";
+ }
foreach my $md (keys %{$mod->{$this_module}}) {
add_mod_deps ($depth, $mod, $mod2, $module, $md);