gcc-python-plugin icon indicating copy to clipboard operation
gcc-python-plugin copied to clipboard

False positive with PyDict_GetItem where key is known to be present

Open davidmalcolm opened this issue 8 years ago • 1 comments

See e.g.: http://fedorapeople.org/~dmalcolm/gcc-python-plugin/2012-04-03/python-kaa-base-0.6.0-6.fc17/kaa-base-0.6.0/build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_memory-refcount-errors.html#report-1

PyMapping_HasKey should imply that PyDict_GetItem should succeed, but the checker erroneoulsly considers that the latter could.

davidmalcolm avatar Feb 09 '17 20:02 davidmalcolm

Imported from trac issue 39. Created by dmalcolm on 2012-04-03T12:54:34, last modified: 2012-04-03T12:54:34

davidmalcolm avatar Feb 09 '17 20:02 davidmalcolm