]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1358916: refuse to retrieve over-large MARC records via Z39.50
authorGalen Charlton <gmc@esilibrary.com>
Tue, 19 Aug 2014 20:19:20 +0000 (13:19 -0700)
committerBen Shum <bshum@biblio.org>
Thu, 18 Sep 2014 20:17:49 +0000 (16:17 -0400)
commit1708f88f5f87bf895469725d631192239e22fd58
tree24320b318bd4531cd364729ecc5099f795bc509f
parent8f4f16b39d2eb135d8c2f4acc11175dfeaea27b1
LP#1358916: refuse to retrieve over-large MARC records via Z39.50

At least one malformed record discovered in the wild can
cause open-ils.search backends to balloon to over 3G of memory
consumption.  This patch works around that by refusing
to process any (MARC) Z39.50 results that are larger than the
MARC record maximum of 99,999 octets.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm