summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/property_list_service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c
index 80b5f52..5c6d2bd 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -226,10 +226,10 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
226 debug_info("initial read failed!"); 226 debug_info("initial read failed!");
227 return PROPERTY_LIST_SERVICE_E_MUX_ERROR; 227 return PROPERTY_LIST_SERVICE_E_MUX_ERROR;
228 } else { 228 } else {
229 if ((char)pktlen == 0) { /* prevent huge buffers */ 229 pktlen = GUINT32_FROM_BE(pktlen);
230 if (pktlen < (1 << 24)) { /* prevent huge buffers */
230 uint32_t curlen = 0; 231 uint32_t curlen = 0;
231 char *content = NULL; 232 char *content = NULL;
232 pktlen = GUINT32_FROM_BE(pktlen);
233 debug_info("%d bytes following", pktlen); 233 debug_info("%d bytes following", pktlen);
234 content = (char*)malloc(pktlen); 234 content = (char*)malloc(pktlen);
235 235