[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#759612: apt: apt-cache segfaults when given some options



On Fri, Aug 29, 2014 at 10:45:09AM -0700, Dima Kogan wrote:
> David Kalnischkies <david@kalnischkies.de> writes:
[..]
> Hi David. Thank you for looking at this. Looking a bit more deeply, it
> looks like my shell was expanding ^xxx- to a list of all files in the
> local directory, and the cause of the crash was simply too many
> arguments. The following crashes consistently for me:
> 
>  apt-cache search xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
> 
> There are 133 'xxx' here. This appears to be the threshold. >= 133
> arguments causes a crash. < 133 arguments works ok. This is admittedly
> more of a corner case, but it still shouldn't crash.

This should be fixed in the git tree now, thanks for the instructions
how to reproduce the bug.

Cheers,
 Michael


Reply to: