- Fixed the `device_uri` invalid pointer for driverless printers with `.local`
hostname (Issue #419)
- Fixed an OpenSSL crash bug (Issue #409)
+- Fixed a potential SNMP OID value overflow issue (Issue #431)
- Use localhost when printing via printer application (Issue #353)
- Now localize HTTP responses using the Content-Language value (Issue #426)
/*
* SNMP functions for CUPS.
*
+ * Copyright © 2022 by OpenPrinting.
* Copyright © 2007-2019 by Apple Inc.
* Copyright © 2006-2007 by Easy Software Products, all rights reserved.
*
{
int count; /* Number of bytes for length */
-
if ((count = length & 127) > sizeof(unsigned))
{
(*buffer) += count;
if (valend > bufend)
valend = bufend;
- number = asn1_get_packed(buffer, bufend);
+ number = asn1_get_packed(buffer, valend);
if (number < 80)
{
while (*buffer < valend)
{
- number = asn1_get_packed(buffer, bufend);
+ number = asn1_get_packed(buffer, valend);
if (oidptr < oidend)
*oidptr++ = number;