1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
Andreas Schneider 82b07bd048 lib:tdb: Add missing overflow check for num_values in pytdb.c
Error: INTEGER_OVERFLOW (CWE-190):
tdb-1.4.10/pytdb.c:401: cast_overflow: Truncation due to cast operation on "num_values" from 64 to 32 bits.
tdb-1.4.10/pytdb.c:401: overflow_sink: "num_values", which might have overflowed, is passed to "tdb_storev(self->ctx, key, values, num_values, flag)".
  399|           }
  400|
  401|->         ret = tdb_storev(self->ctx, key, values, num_values, flag);
  402|           free(values);
  403|           PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx);

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2024-04-30 14:30:34 +00:00
..
2024-01-29 14:39:32 +00:00
2023-04-14 05:25:33 +00:00
2021-07-20 10:57:35 +00:00
2024-04-16 18:37:17 +00:00
2024-01-09 10:21:34 +00:00
2024-04-16 17:32:34 +00:00
2009-05-05 19:04:39 -04:00
2023-02-02 21:15:54 +00:00
2024-04-16 17:32:34 +00:00