1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00
Andreas Schneider b11cf72c1b s3:winbind: Fix integer type of len
"Error: INTEGER_OVERFLOW (CWE-190):
samba-4.20.0rc2/source3/winbindd/winbindd_cache.c:849: cast_overflow: Truncation due to cast operation on ""len"" from 32 to 8 bits.
samba-4.20.0rc2/source3/winbindd/winbindd_cache.c:851: overflow_sink: ""len"", which might have overflowed, is passed to ""memcpy(centry->data + centry->ofs, s, len)"". [Note: The source code implementation of the function has been overridden by a builtin model.]
  849|   	centry_put_uint8(centry, len);
  850|   	centry_expand(centry, len);
  851|-> 	memcpy(centry->data + centry->ofs, s, len);
  852|   	centry->ofs += len;
  853|   }"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
2024-06-30 23:20:34 +00:00
..
2023-08-14 19:53:37 +00:00
2023-07-19 09:58:37 +00:00
2023-08-14 19:53:37 +00:00
2023-07-19 09:58:37 +00:00
2023-06-16 16:14:30 +00:00
2023-07-19 09:58:37 +00:00
2022-07-23 23:29:38 +00:00
2024-03-22 06:07:42 +00:00
2023-07-19 09:58:37 +00:00
2024-06-04 07:11:35 +00:00
2023-07-19 09:58:37 +00:00
2023-07-19 09:58:37 +00:00