SF Bug Tracker id 3417134 - Crash seen in UpnpFinish
Submitted: Sunil ( sunilangadi ) - 2011-10-02 08:28:47 PDT
Details: I observed crash in the below mentioned log statement in
function upnpfinish(file: upnpapi.c).
UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Exiting UpnpFinish:
UpnpSdkInit is :%d:\n", UpnpSdkInit);
In particular it was crashing in ithread_self in
UpnpDisplayFileAndLine(file upnpdebug.c) on WIN32.
Moving the call ithread_cleanup_library() below the upnp printf call
mentioned above in function upnpfinish fixed the crash but I couldn't get
to the root of the problem.
The problem was observed on WIN32.
(cherry picked from commit e5887c9036
)
This commit is contained in:

committed by
Marcelo Roberto Jimenez

parent
4b7aa238e7
commit
8ffb52e330
21
ChangeLog
21
ChangeLog
@@ -299,6 +299,27 @@ Version 1.8.0
|
|||||||
Version 1.6.16
|
Version 1.6.16
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2012-03-05 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
|
||||||
|
SF Bug Tracker id 3417134 - Crash seen in UpnpFinish
|
||||||
|
|
||||||
|
Submitted: Sunil ( sunilangadi ) - 2011-10-02 08:28:47 PDT
|
||||||
|
|
||||||
|
Details: I observed crash in the below mentioned log statement in
|
||||||
|
function upnpfinish(file: upnpapi.c).
|
||||||
|
UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, "Exiting UpnpFinish:
|
||||||
|
UpnpSdkInit is :%d:\n", UpnpSdkInit);
|
||||||
|
|
||||||
|
In particular it was crashing in ithread_self in
|
||||||
|
UpnpDisplayFileAndLine(file upnpdebug.c) on WIN32.
|
||||||
|
|
||||||
|
Moving the call ithread_cleanup_library() below the upnp printf call
|
||||||
|
mentioned above in function upnpfinish fixed the crash but I couldn't get
|
||||||
|
to the root of the problem.
|
||||||
|
|
||||||
|
The problem was observed on WIN32.
|
||||||
|
|
||||||
|
|
||||||
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
SF Bug Tracker id 3497034 - Buffer not null terminated in UpnpGetIfInfo
|
SF Bug Tracker id 3497034 - Buffer not null terminated in UpnpGetIfInfo
|
||||||
|
@@ -669,12 +669,12 @@ int UpnpFinish(void)
|
|||||||
ithread_mutex_destroy(&gUUIDMutex);
|
ithread_mutex_destroy(&gUUIDMutex);
|
||||||
/* remove all virtual dirs */
|
/* remove all virtual dirs */
|
||||||
UpnpRemoveAllVirtualDirs();
|
UpnpRemoveAllVirtualDirs();
|
||||||
/* Clean-up ithread library resources */
|
|
||||||
ithread_cleanup_library();
|
|
||||||
UpnpSdkInit = 0;
|
UpnpSdkInit = 0;
|
||||||
UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__,
|
UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__,
|
||||||
"Exiting UpnpFinish: UpnpSdkInit is :%d:\n", UpnpSdkInit);
|
"Exiting UpnpFinish: UpnpSdkInit is :%d:\n", UpnpSdkInit);
|
||||||
UpnpCloseLog();
|
UpnpCloseLog();
|
||||||
|
/* Clean-up ithread library resources */
|
||||||
|
ithread_cleanup_library();
|
||||||
|
|
||||||
return UPNP_E_SUCCESS;
|
return UPNP_E_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user