<rdar://problem/23134356>, <rdar://problem/23134415>,
<rdar://problem/23134506>, <rdar://problem/23135066>,
<rdar://problem/23135122>, <rdar://problem/23135207>,
- <rdar://problem/23144290>, <rdar://problem/23144358>)
+ <rdar://problem/23144290>, <rdar://problem/23144358>,
+ <rdar://problem/23144461>)
- The cupsGetPPD* functions did not work with IPP printers (STR #4725)
- Some older HP LaserJet printers need a delayed close when printing
using the libusb-based USB backend (STR #4549)
*port = (int)strtol(uri + 1, (char **)&uri, 10);
+ if (*port <= 0 || *port > 65535)
+ {
+ *port = 0;
+ return (HTTP_URI_STATUS_BAD_PORT);
+ }
+
if (*uri != '/' && *uri)
{
*port = 0;