[Libguestfs] [PATCH v3 01/22] common/mlpcre: Raise Invalid_argument if PCRE.sub n parameter is negative.

Pino Toscano ptoscano at redhat.com
Wed Sep 27 12:37:12 UTC 2017


On Friday, 22 September 2017 09:36:02 CEST Richard W.M. Jones wrote:
> --- a/common/mlpcre/pcre-c.c
> +++ b/common/mlpcre/pcre-c.c
> @@ -201,6 +201,7 @@ value
>  guestfs_int_pcre_sub (value nv)
>  {
>    CAMLparam1 (nv);
> +  int n = Int_val (nv);

This variable can be const, to avoid accidental changes.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170927/b9cd2239/attachment.sig>


More information about the Libguestfs mailing list