Re: svn commit: r1917082 - /apr/apr/trunk/buffer/apr_buffer.c

Ruediger Pluem <[email protected]>
Newsgroups gmane.comp.apache.apr.devel
Message-ID <[email protected]>

On 4/18/24 12:37 AM, [email protected] wrote:
> Author: minfrin
> Date: Wed Apr 17 22:37:07 2024
> New Revision: 1917082
> 
> URL: http://svn.apache.org/viewvc?rev=1917082&view=rev
> Log:
> apr_buffer: Add explicit casts on all potentially narrowing conversions
> to apr_size_t. Define the maximum buffer size as APR_SIZE_MAX/2.
> 
> Modified:
>     apr/apr/trunk/buffer/apr_buffer.c
> 
> Modified: apr/apr/trunk/buffer/apr_buffer.c
> URL: http://svn.apache.org/viewvc/apr/apr/trunk/buffer/apr_buffer.c?rev=1917082&r1=1917081&r2=1917082&view=diff
> ==============================================================================
> --- apr/apr/trunk/buffer/apr_buffer.c (original)
> +++ apr/apr/trunk/buffer/apr_buffer.c Wed Apr 17 22:37:07 2024
> @@ -28,12 +28,13 @@
>  #include "apr_strings.h"
>  #include "apr_private.h"
>  
> +#define APR_BUFFER_MAX APR_SIZE_MAX/2

Why no longer APR_OFF_MAX?

Regards

Rüdiger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.