Skip to content

Commit

Permalink
Switch to the released sip 4.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Sep 22, 2016
1 parent 5f3d20a commit b4bfb4d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
10 changes: 5 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@

# Some tools will be downloaded for the builds. These are the versions and
# MD5s of the tool binaries currently in use.
sipCurrentVersion = '4.18.1.dev1606100655'
sipCurrentVersion = '4.18.1'
sipMD5 = {
'darwin' : '48f7370706c63036fac66da6439559e8',
'win32' : '138b2daa19a357ac9d92edd9a8e149b9',
'linux32' : '23f00942b1eb5d69a7bdac517c4e2995',
'linux64' : 'fce6937c3e67c2d099a8610890d81f87',
'darwin' : 'd2e022a1dbdca3a95116ad160b3622a0',
'win32' : 'd4a46b908d362d19f3fab979bf23eab8',
'linux32' : '8f6e43ced87c9ee86afb707e4cfa5fed',
'linux64' : 'e77e4b8810217a981a67c33bcba4d729',
}

wafCurrentVersion = '1.7.15-p1'
Expand Down
16 changes: 14 additions & 2 deletions sip/siplib/objmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,21 @@ static void add_object(sipObjectMap *om, void *addr, sipSimpleWrapper *val)
}
else
{
/* We are removing it from the map here. */
sipSetNotInMap(sw);
/*
* We are removing it from the map here. However, note
* that we first have to call the destructor before marking
* it as not being in the map, as the destructor itself
* might end up trying to remove the wrapper and its
* aliases from the map. In that case, if the wrapper is
* already marked as not in the map, the removal will just
* return early, leaving any potential aliases as stale
* entries in the map. If we later try to wrap a different
* object at the same address, we end up retrieving the
* stale alias entry from the object map, triggering a
* use-after-free when accessing its C++ object.
*/
sip_api_common_dtor(sw);
sipSetNotInMap(sw);
}

sw = next;
Expand Down
2 changes: 1 addition & 1 deletion sip/siplib/sip.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extern "C" {
* Define the SIP version number.
*/
#define SIP_VERSION 0x041201
#define SIP_VERSION_STR "4.18.1.dev1606100655"
#define SIP_VERSION_STR "4.18.1"


/*
Expand Down

0 comments on commit b4bfb4d

Please sign in to comment.