diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-01 14:44:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-01 14:44:39 +0000 |
commit | a8e0d6c1f4ce27a47a588034bb372413a2491acc (patch) | |
tree | 75864971baa00494ebd6ac62c37e8caedb97ba99 /MandrivaUpdate | |
parent | 7a5a4d4356942739a74b69253b08f31de3147a1f (diff) | |
download | rpmdrake-a8e0d6c1f4ce27a47a588034bb372413a2491acc.tar rpmdrake-a8e0d6c1f4ce27a47a588034bb372413a2491acc.tar.gz rpmdrake-a8e0d6c1f4ce27a47a588034bb372413a2491acc.tar.bz2 rpmdrake-a8e0d6c1f4ce27a47a588034bb372413a2491acc.tar.xz rpmdrake-a8e0d6c1f4ce27a47a588034bb372413a2491acc.zip |
(pkg2medium) pkg2medium() could return undef but several places
blindly dereferenced it which could lead to rare crashes (#49901)
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-x | MandrivaUpdate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate index 7c3d55e3..fba0ffad 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -90,7 +90,7 @@ sub refresh_packages_list { my ($name, $version, $release, $arch) = split_fullname($_); my $pkg = $pkgs->{$_}; my $raw_medium = pkg2medium($pkg->{pkg}, $urpm); - my $medium = $raw_medium ? $raw_medium->{name} : undef; + my $medium = !$raw_medium->{fake} ? $raw_medium->{name} : undef; my $icon; my $importance = $medium && $descriptions->{$medium}{$name}{importance}; if ($importance) { |