[New-bugs-announce] [issue20560] tkFileFilter.c: ostypeCount not initialized?

Terry J. Reedy report at bugs.python.org
Sat Feb 8 11:14:31 CET 2014

New submission from Terry J. Reedy:

Fresh Win7 VC express debug build (F7), 2.7 only: fairly recent (last 3 months?) regression.

In debug console, import idlelib.idle. Try to Open a file. Get message that ostypeCount is used before initialized. If open python_d with F5 in VC, [break] takes me to VS debugger, which points to line 341 in tkFileFilter.c (where is that in the directory tree?).
    if (ostypeCount > 0 && ostypeList != NULL) {
I am slightly puzzled because it appears that line 234
    for (i=0; i<ostypeCount; i++) {
should have been executed first.

messages: 210608
nosy: serhiy.storchaka, terry.reedy
priority: high
severity: normal
stage: needs patch
status: open
title: tkFileFilter.c: ostypeCount not initialized?
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list