Skip to content

Commit

Permalink
net: pktgen: fix access outside of user given buffer in pktgen_if_wri…
Browse files Browse the repository at this point in the history
…te()

Honour the user given buffer size for the hex32_arg(), num_arg(),
strn_len(), get_imix_entries() and get_labels() calls (otherwise they will
access memory outside of the user given buffer).

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Peter Seiderer authored and Paolo Abeni committed Mar 4, 2025
1 parent 2b15a06 commit c5cdbf2
Showing 1 changed file with 118 additions and 60 deletions.
Loading

0 comments on commit c5cdbf2

Please sign in to comment.