Files
scst/iscsi-scst/usr
Lev Vainblat 6c6e7251b2 iscsi-scst: Fix wrong variable in chap_calc_digest_af_alg memcpy
Use 'bytes' (the return value from af_alg_final) instead of 'res'
(which is 0 after the last successful af_alg_update call) when
copying the digest.

This bug caused the memcpy to copy 0 bytes, resulting in an
uninitialized digest buffer. It also triggered a GCC
-Werror=stringop-overflow warning because 'res' could theoretically
be negative, leading to a huge unsigned size.
2026-01-23 12:43:06 +03:00
..
2023-08-22 10:02:40 +03:00
2023-08-22 10:02:40 +03:00
2018-04-12 03:49:10 +00:00
2023-08-22 10:02:40 +03:00
2018-04-12 03:49:10 +00:00
2010-04-23 17:50:01 +00:00
2018-04-12 03:49:10 +00:00
2019-05-09 16:26:46 +00:00
2018-04-12 03:49:10 +00:00
2010-04-23 17:50:01 +00:00
2024-04-22 10:21:15 +03:00
2018-04-12 03:49:10 +00:00