apt-get crashes when an empty string is fed as the package name

Bug #1352565 reported by LexLythius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This is an error report for package apt (http://packages.ubuntu.com/trusty/apt), but i just can't select it from the package filter as it yields "too many matches" for that name.

If you do

apt-get install/remove/whatever ""

you get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
terminate called after throwing an instance of 'std::out_of_range'
  what(): basic_string::compare

and the program crashes instead of pointing out my stupidity.

This happens in Ubuntu 14.04 but I think it also affects other versions.

Changed in dpkg (Ubuntu):
status: New → In Progress
assignee: nobody → Filip Sohajek (filip-sohajek)
affects: dpkg (Ubuntu) → apt (Ubuntu)
Changed in apt (Ubuntu):
assignee: Filip Sohajek (filip-sohajek) → nobody
assignee: nobody → Filip Sohajek (filip-sohajek)
Revision history for this message
dino99 (9d9) wrote :

Fixed in xenial

apt (1.1~exp13) experimental; urgency=medium

Changed in apt (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.