Bill Allombert on Sun, 08 Sep 2024 14:14:05 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PATCH 2.16.2-beta] compressed input
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: [PATCH 2.16.2-beta] compressed input
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Sun, 8 Sep 2024 14:14:00 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1725797642; c=relaxed/relaxed; bh=+V5Y3LeL6gmdlCv+Hhl2XMbvAW2Hur8jJi8qVJ4ig1E=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=n0bIVX1E30HYAiVlsj0UNsXt7nL5/oSsGZUXMM/E2wD36qgnqrcCoYhOqiOohlz/1BoffnB9JF46HKNKHbmf/zkhCS67wp/L9NuxWrBLOu/jraj9BCRkqkkLmZH00O9ZeslrwIEuT1z44afEXq9utPg429W5MWyVNuiFy7vWUVWkBl8cjnJhM3oOHvJkUBNtv9RIom+g9BbMgYxUwDc7kqhXOGRaESnYue5y9JST12IV3/fq0kit4kW38QIXZkhnD+VybIOKmG0NCVf0cBvozTejYoEsr9uoSjpKLm0TPxgruE9PpX/aU47sWtmh1ns/s/A0pmcxY3DzIHRtEv/6jmtm2Mq5wFe8Fak9cXzKTCLUZDEi31Wjn6vlzuJ/+HtXRWDJm5yyJ0F1pg5nA+zsUbC3rPIxZoGlmAZO9k4IIfwNdQgSeH94FxNfbKkIkBncxYHBuMlltZvkeeN5S6FuN2+yItk6H689jBbglb18DpdQJgml3Fsg7hb/HWrjUOIOD1wUNtH8YcmLVPi3Msmsu1wExzOBJ2FmVeN/7paSipYKATQCIn3aAM6UlF8QX/2D7DCeks9n3yuAXopjvqPpBxg1wb7xiBg47k45Y6e156dqnWOdsyGCjPP38ftld86odrsrWJ53q+GnK9/UgiUfHmuFsSN0VwZPWh4E0BhIOQ0=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1725797642; cv=none; b=EJt5VxmVReaRUXJgNEyiIZ4D0yaeDmFKmJXH/ZAbBZ3Ryk+7oQyUETDJBrRL2YV3ohY9gJf0ENJz1Kb8YS5IfEF6RGRwjd/WHMmL6dg6tayHJ190l8vYinRlnapRTRxjLSikjDxdYDH8EqZP9Kf+bVNzYgCc+Qhjbiu9tIBMD1uLRs+z8SrbD4M8Hjt7Ihple+9d3O/XnRo4my/kOUtoQ5NC7AKe/2BfnVrEDAxBNrGinR11Jxoaz5wUU2al7COC+3ahE8bJU3iwPGKGldlI/xaQkEJ2wyoi3H7mU/VQkRltXD+hlTz7Un11qN1rJRpAtDwxDy02EAQZwvrb5MLp6szpS1SNz03Ov40dn0LRhEXXrFEN11OUu81PG8NY61HTXl6nWDmW+mQjG7wVMiz97lOC32uVHA4tPnEYHQfTVyj+CaMZ8IIU51qIAH+nARIQhSXsdl1/oC46qBse4Mtv20WcSLijbXCP9GC5GcaviM3982VocbhpyIHgRG8PoDdnwvluPaMw1+DduuA3IMU+9p8e4FVZoPa5RBIBucvV2Su84HAgmCv+1XyECKUvq6pVCcA9kt3WIJu0CKZsUD7mpfq/qJi7JvGgo17XPy9tFHs115bXzLzz/VA4P0X3SbZxY5SZeim2hggEpX+IP4Vggq4aB78AODi5nTlgQvVT46A=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Sun, 08 Sep 2024 14:14:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1725797642; bh=+V5Y3LeL6gmdlCv+Hhl2XMbvAW2Hur8jJi8qVJ4ig1E=; h=Date:From:To:Subject:References:In-Reply-To:From; b=DkqdURBtiWOxv6gnu9LjPMxCrBJzG3ZqtxqO2xocsUC1/oAUsRa0yZtTW+BtqPBIQ evogtOZ/AdztYyZxF4YVIk2jnzYtR9f2RHe9ifY6OAPVzjGyIdIeUcuXQrFvpbCXeq p+DjeB0eyouAUes2Xhh63/UH/ZxR83/mmm2ggLFU0a87JcOK2TcEGspR2jfs98BIWw Xsn3AQuJyZGwD3tnTb9GtNWf4j39H8VxdzD3VSEoK5RkPNJmCM0MVRwjKQ5l7RvAQc oRhUA8nv/ZLOXmfoInOiYvxUIPejKIZMJ+mokpho5A+BKnqMnaXaFM4+RPoaTCQa4t 2kMcXPlsUUu4nnaKR53SSYt8efdKxTq4wcs5TuOsK67kykDxWPxxbJZYwGBSoqTrvH hWbbRxa3GNQjybi6LJuPVajKHdASfB7TRCjHGed88YEcFK7yhAkBMMPzSWE9wlQcY3 oa9cqoDfVC7GZAPJAeg765CG3xnbJsu1CefbVD81G5iAm7jM2ZDnYSHghYAMW7G14d 77iiBOUen2FzoxyQvfnf17fQU1uAUoC/TvFfOHxdsdCjeajjPoieXUVuZy3gRHjcFB GuBFMsUl704shlA0p+JU+NlXrAgYstAMtGXhACanCFElmAcurna3u8x+HqRRCg6+qn ZQ3mJ1Adip3yLzrTv2I8CHYU=
- In-reply-to: <ZtEYT7F0yhax3DLX@debian.attlocal.net>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ZtEYT7F0yhax3DLX@debian.attlocal.net>
On Thu, Aug 29, 2024 at 05:54:39PM -0700, Ilya Zakharevich wrote:
> This patch
> • allows newer types of compression of input;
> • protects against poison pills in the decompression command line.
>
> Enjoy,
> Ilya
>
> +typedef struct
> +{
> + char *ext;
> + char *cmd;
> +} decompress_tbl;
> +decompress_tbl decompress[] = {
> +#ifdef ZCAT
> + {".Z", ZCAT},
> +#ifdef GZCAT
> + {".gz", ZCAT},
> +#endif /* defined GZCAT */
> +#endif /* defined ZCAT */
> + {".bz2", "bzip2 -dc"},
> + {".xz", "xz -dc"},
> + {".zstd", "zstd -dc"},
> + {".7z", "7za -so e"},
> + {".zip", "unzip -p"},
> + {NULL, NULL}
> +};
You could also add lzma, lz and lzop.
Someone should really write a tool that provide consistent interface to all those.
PARI/GP is not the place to do it...
Cheers,
Bill.