A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-January/019267.html below:

[Python-Dev] os.listdir("") bug on Windows

[Python-Dev] os.listdir("") bug on Windows [Python-Dev] os.listdir("") bug on WindowsNeil Hodgson nhodgson@bigpond.net.au
Tue, 8 Jan 2002 14:04:01 +1100
   There is an out-of-bounds error on Windows when using os.listdir("")
which could result in indeterminate behaviour. After parsing the args, it
does
 ch = namebuf[len-1];
   which indexes before the array as len = 0.
   Possibly change this to
 ch = (len > 0) ? namebuf[len-1] : '\0';

   Neil






RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4