1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
samba-mirror/lib/tdb
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
..
ABI tdb: release 1.4.10 2024-01-29 14:39:32 +00:00
common tdb: Do not pass non–null‐terminated strings to strcmp() (CID 1449485) 2023-10-13 02:18:30 +00:00
docs lib:tdb: Fix code spelling 2023-04-14 05:25:33 +00:00
include tdb: Fix invalid syntax in tdb.h 2021-07-20 10:57:35 +00:00
man docs: Document new tdbdump -x option 2024-04-16 18:37:17 +00:00
python tdb: fix python/tdbdump.py example 2024-01-09 10:21:34 +00:00
test tdb: Add test for tdbdump -x 2024-04-16 17:32:34 +00:00
tools tdb: Add tdbdump option to output all data as hex values 2024-04-16 17:32:34 +00:00
web
_tdb_text.py tdb/test/_tdbtext: remove unused imports 2018-10-25 21:45:55 +02:00
configure configure/Makefile: export PYTHONHASHSEED=1 in all 'configure/Makefile' scripts 2022-03-29 22:32:32 +00:00
doxy.config doc: Remove build/ from doxygen config or it will not work in brew. 2012-08-04 16:31:22 +02:00
Makefile Python: remove pydoctor 2023-02-02 21:15:54 +00:00
pytdb.c lib:tdb: Add missing overflow check for num_values in pytdb.c 2024-04-30 14:30:34 +00:00
tdb.pc.in
wscript tdb: Add test for tdbdump -x 2024-04-16 17:32:34 +00:00