emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindat can exhaust memory when unpacking to vector


From: tomas
Subject: Re: Bindat can exhaust memory when unpacking to vector
Date: Tue, 24 Oct 2023 06:34:40 +0200

On Mon, Oct 23, 2023 at 10:36:01PM +0300, Petteri Hintsanen wrote:
> Eli Zaretskii <eliz@gnu.org> writes:

[...]

> > Can you argue why this should be considered a problem for Emacs to
> > solve, and not a cockpit error on the part of the Lisp program that
> > makes such calls?
> 
> No, not really.  Now when I think about it, it is fairly obvious that
> the programmer should realize this when using such low level mechanism
> as Bindat.

OTOH, a maximum length of something might be thought as a (n optional)
part of a type description. Types are predicates.

As could be a set of bounds for a numerical type. Perhaps there's an
extension opportunity for bindat.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]