Initialize ServiceTable.

(cherry picked from commit 20372ccef6)
This commit is contained in:
Yoichi NAKAYAMA
2012-03-04 13:51:49 +09:00
committed by Marcelo Roberto Jimenez
parent 4f84435528
commit 7dd2d33382
2 changed files with 12 additions and 1 deletions

View File

@@ -301,10 +301,20 @@ Version 1.6.16
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com> 2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Submitted: Yoichi NAKAYAMA ( yoichi ) - 2012-03-03 20:35:08 PST SF Bug Tracker id 3496703 - Handle_Info::ServiceList may have undefined value
Submitted: Yoichi NAKAYAMA ( yoichi ) - 2012-03-03 20:49:25 PST
In UpnpRegisterRootDevice(), HInfo->ServiceTable is not initialized and
getServiceTable() may leave it intact. It will cause crash on
freeServiceTable() called from UpnpUnRegisterRootDevice().
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3496702 - TvDeviceStop is called even if Start failed SF Bug Tracker id 3496702 - TvDeviceStop is called even if Start failed
Submitted: Yoichi NAKAYAMA ( yoichi ) - 2012-03-03 20:35:08 PST
In sample tvdevice, error of device_main() is not handled, and In sample tvdevice, error of device_main() is not handled, and
TvDeviceStop() cause crash. TvDeviceStop() cause crash.

View File

@@ -884,6 +884,7 @@ int UpnpRegisterRootDevice(
*/ */
UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__, UpnpPrintf(UPNP_ALL, API, __FILE__, __LINE__,
"UpnpRegisterRootDevice: Gena Check\n"); "UpnpRegisterRootDevice: Gena Check\n");
memset(&HInfo->ServiceTable, 0, sizeof(HInfo->ServiceTable));
hasServiceTable = getServiceTable( hasServiceTable = getServiceTable(
(IXML_Node *)HInfo->DescDocument, (IXML_Node *)HInfo->DescDocument,
&HInfo->ServiceTable, &HInfo->ServiceTable,