From d2b49a1f9563680939279c743918b01e2a63a618 Mon Sep 17 00:00:00 2001 From: bfernhomberg Date: Tue, 10 Aug 2004 13:37:18 +0000 Subject: [PATCH] increase the maximum size of macbinary forks, as suggested by bug 829221 --- bin/megatron/macbin.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/megatron/macbin.c b/bin/megatron/macbin.c index e6f52d50..885ebb57 100644 --- a/bin/megatron/macbin.c +++ b/bin/megatron/macbin.c @@ -1,5 +1,5 @@ /* - * $Id: macbin.c,v 1.10 2002-02-16 17:12:53 srittau Exp $ + * $Id: macbin.c,v 1.10.10.1 2004-08-10 13:37:18 bfernhomberg Exp $ */ #ifdef HAVE_CONFIG_H @@ -595,13 +595,14 @@ int test_header(void) return -1; /* macbinary forks aren't larger than 0x7FFFFF */ + /* we allow forks to be larger, breaking the specs */ memcpy(&cc, head_buf + 83, sizeof(cc)); cc = ntohl(cc); - if (cc > 0x7FFFFF) + if (cc > 0x7FFFFFFF) return -1; memcpy(&cc, head_buf + 87, sizeof(cc)); cc = ntohl(cc); - if (cc > 0x7FFFFF) + if (cc > 0x7FFFFFFF) return -1; -- 2.39.2