diff options
author | Dan Carpenter <[email protected]> | 2023-07-11 11:21:00 +0300 |
---|---|---|
committer | Jeffrey Hugo <[email protected]> | 2023-07-14 10:12:05 -0600 |
commit | 47d87f71d00b7091b43a56f608f7151b33e5772e (patch) | |
tree | 362a07cd0223b337fe43a584e2acf6f861c8e8cb /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 51b56382ed2a2b03347372272362b3baa623ed1e (diff) |
accel/qaic: Add consistent integer overflow checks
The encode_dma() function has integer overflow checks. The
encode_passthrough(), encode_activate() and encode_status() functions
did not. I added integer overflow checking everywhere. I also
updated the integer overflow checking in encode_dma() to use size_add()
so everything is consistent.
Fixes: 129776ac2e38 ("accel/qaic: Add control path")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Cc: [email protected] # 6.4.x
[jhugo: tweak if in encode_dma() to match existing style]
Signed-off-by: Jeffrey Hugo <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/ZK0Q7IsPkj6WSCcL@moroto
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions