Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 961703cdc82536b6ff897ad7d4b3bbf22718d1b5 authored by Miss Islington (bot) on 16 July 2020, 13:25:31 UTC, committed by GitHub on 16 July 2020, 13:25:31 UTC
GCC says ``` ../cpython/Parser/string_parser.c: In function ‘fstring_find_expr’: ../cpython/Parser/string_parser.c:404:93: warning: ‘cols’ may be used uninitialized in this function [-Wmaybe-uninitialized] 404 | p2->starting_col_offset = p->tok->first_lineno == p->tok->lineno ? t->col_offset + cols : cols; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../cpython/Parser/string_parser.c:384:16: note: ‘cols’ was declared here 384 | int lines, cols; | ^~~~ ../cpython/Parser/string_parser.c:403:45: warning: ‘lines’ may be used uninitialized in this function [-Wmaybe-uninitialized] 403 | p2->starting_lineno = t->lineno + lines - 1; | ~~~~~~~~~~~~~~~~~~^~~ ../cpython/Parser/string_parser.c:384:9: note: ‘lines’ was declared here 384 | int lines, cols; | ^~~~~ ``` and, indeed, if `PyBytes_AsString` somehow fails, lines & cols will not be initialized. (cherry picked from commit 2ad7e9c011b7606c5c7307176df07419a0e60134) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent f0f6566
Tip revision: 961703cdc82536b6ff897ad7d4b3bbf22718d1b5 authored by Miss Islington (bot) on 16 July 2020, 13:25:31 UTC
Fix possibly-unitialized warning in string_parser.c. (GH-21503)
Fix possibly-unitialized warning in string_parser.c. (GH-21503)
Tip revision: 961703c
File | Mode | Size |
---|---|---|
bdist_wininst | ||
clinic | ||
icons | ||
layout | ||
WinMain.c | -rw-r--r-- | 449 bytes |
_msi.c | -rw-r--r-- | 32.6 KB |
_testconsole.c | -rw-r--r-- | 3.2 KB |
classicAppCompat.can.xml | -rw-r--r-- | 3.9 KB |
classicAppCompat.cat | -rw-r--r-- | 10.7 KB |
classicAppCompat.sccd | -rw-r--r-- | 18.1 KB |
config.c | -rw-r--r-- | 5.5 KB |
crtlicense.txt | -rw-r--r-- | 1.7 KB |
dl_nt.c | -rw-r--r-- | 808 bytes |
empty.c | -rw-r--r-- | 137 bytes |
errmap.h | -rw-r--r-- | 4.9 KB |
errmap.mak | -rw-r--r-- | 95 bytes |
frozen_dllmain.c | -rw-r--r-- | 3.9 KB |
getpathp.c | -rw-r--r-- | 34.0 KB |
invalid_parameter_handler.c | -rw-r--r-- | 549 bytes |
launcher.c | -rw-r--r-- | 64.5 KB |
msvcrtmodule.c | -rw-r--r-- | 15.6 KB |
pyconfig.h | -rw-r--r-- | 19.8 KB |
pylauncher.rc | -rw-r--r-- | 1.5 KB |
pyshellext.cpp | -rw-r--r-- | 18.3 KB |
pyshellext.def | -rw-r--r-- | 141 bytes |
pyshellext.idl | -rw-r--r-- | 277 bytes |
pyshellext.rc | -rw-r--r-- | 1.1 KB |
pyshellext_d.def | -rw-r--r-- | 143 bytes |
python.manifest | -rw-r--r-- | 1.3 KB |
python3.def | -rw-r--r-- | 40.7 KB |
python3dll.c | -rw-r--r-- | 134 bytes |
python_exe.rc | -rw-r--r-- | 1.2 KB |
python_nt.rc | -rw-r--r-- | 1.1 KB |
python_uwp.cpp | -rw-r--r-- | 6.5 KB |
python_ver_rc.h | -rw-r--r-- | 969 bytes |
pythonw_exe.rc | -rw-r--r-- | 1.2 KB |
readme.txt | -rw-r--r-- | 3.5 KB |
sqlite3.rc | -rw-r--r-- | 1.3 KB |
store_info.txt | -rw-r--r-- | 6.2 KB |
testpy.py | -rw-r--r-- | 831 bytes |
validate_ucrtbase.py | -rw-r--r-- | 2.7 KB |
winreg.c | -rw-r--r-- | 63.6 KB |
winsound.c | -rw-r--r-- | 6.5 KB |
Computing file changes ...