emacs-devel
[Top][All Lists]
Advanced

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

Re: oops? read/write vs type of length parameter


From: Eli Zaretskii
Subject: Re: oops? read/write vs type of length parameter
Date: Tue, 12 Apr 2011 00:44:03 -0400

> From: Jim Meyering <address@hidden>
> Date: Mon, 11 Apr 2011 23:54:06 +0200
> Cc: address@hidden
> 
> Of course the extra bit doesn't matter when you start with 64,
> but starting with only 32, using an unsigned "length" would
> avoid that unnecessary limit.

I'm not sure what you are suggesting (``starting with only 32, using
an unsigned "length"''), but if this means to use a 32-bit type as the
last argument to emacs_write, then that was the bug I fixed by using
ssize_t instead of an int.  The bug prevented Emacs from saving
regions larger than INT_MAX.



reply via email to

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