Package: python2.3
Version: 2.3.5-8
Severity: normal

$ python
Python 2.3.5 (#2, Aug 30 2005, 15:50:26) 
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strftime('%d-%b-%Y', (2005,12,99) + (0,) * 6)
'99-Dec-2005'
>>> time.strftime('%d-%b-%Y', (2005,99,12) + (0,) * 6)
Segmentation fault

Also, other invalid dates do weird things:

>>> time.strftime('%d-%b-%Y', (2005,50,12) + (0,) * 6)
'12-T-2005'
>>> time.strftime('%d-%b-%Y', (2005,60,12) + (0,) * 6)
'12-A-2005'
>>> time.strftime('%d-%b-%Y', (2005,70,12) + (0,) * 6)
'12-J-2005'
>>> time.strftime('%d-%b-%Y', (2005,80,12) + (0,) * 6)
'12-%-2005'
>>> time.strftime('%d-%b-%Y', (2005,90,12) + (0,) * 6)
'12-\x04-2005'
>>> time.strftime('%d-%b-%Y', (2005,100,12) + (0,) * 6)
Segmentation fault

This works fine for:
Python 2.4.2 (#2, Sep 29 2005, 00:23:59) 
[GCC 4.0.2 (Debian 4.0.1-9)] on linux2

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages python2.3 depends on:
ii  libbz2-1.0                    1.0.2-10   high-quality block-sorting file co
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libdb4.3                      4.3.28-3   Berkeley v4.3 Database Libraries [
ii  libncurses5                   5.4-9      Shared libraries for terminal hand
ii  libreadline5                  5.0-11     GNU readline and history libraries
ii  libssl0.9.7                   0.9.7g-3   SSL shared libraries
ii  zlib1g                        1:1.2.3-4  compression library - runtime

Versions of packages python2.3 recommends:
ii  python2.3-iconvcodec          1.1.2-1    Python universal Unicode codec, us

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to