Bug 16311

Summary: Possible name and version overlap while trying to install "file" with version specification
Product: Sisyphus Reporter: Sir Raorn <raorn>
Component: aptAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: major    
Priority: P2 CC: boyarsh, evg, glebfm, imz, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Sir Raorn 2008-07-08 13:53:31 MSD
Сразу пример:

# apt-get install /bin/rm=6.11
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting coreutils for '/bin/rm=6.11'
E: Version ='s' for 'coreutils' was not found

Проблема в apt-get.cc::DoInstall() при обработке /some/file.  char *VerTag смотрит на временный буфер с копией command line аргумента, при обработке /some/file в этот же временный буфер копируется имя пакета, который предоставляет /some/file.  Если имя пакета оказывается длиннее /some/file, VerTag начинает смотреть на мусор.
Comment 1 avm 2008-09-02 08:58:58 MSD
Исправлено в Сизифе.