Re: [nft PATCH] json: Fix for memleak in __binop_expr_json

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

 



On Wed, Apr 24, 2024 at 11:58:21PM +0200, Phil Sutter wrote:
> When merging the JSON arrays generated for LHS and RHS of nested binop
> expressions, the emptied array objects leak if their reference is not
> decremented.
> 
> Fix this and tidy up other spots which did it right already by
> introducing a json_array_extend wrapper.

Thanks for fixing it up so quick, no more issues with tests/shell.

> Reported-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
> Fixes: 0ac39384fd9e4 ("json: Accept more than two operands in binary expressions")
> Signed-off-by: Phil Sutter <phil@xxxxxx>




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux