File CVE-2012-0065.patch of Package usbmuxd.import5868
Index: usbmuxd-1.0.7/libusbmuxd/libusbmuxd.c
===================================================================
--- usbmuxd-1.0.7.orig/libusbmuxd/libusbmuxd.c
+++ usbmuxd-1.0.7/libusbmuxd/libusbmuxd.c
@@ -189,7 +189,7 @@ static int receive_packet(int sfd, struc
char *strval = NULL;
plist_get_string_val(n, &strval);
if (strval) {
- strcpy(dev->serial_number, strval);
+ strncpy(dev->serial_number, strval, 255);
free(strval);
}
n = plist_dict_get_item(props, "LocationID");