[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/8] Move py C utility code to pyutil; guard overflow
From: |
Rob Browning |
Subject: |
[PATCH 0/8] Move py C utility code to pyutil; guard overflow |
Date: |
Tue, 30 May 2023 19:49:36 -0500 |
Proposed for main.
This starts moving some of the utility functions to src/bup/pyutil.*,
so that we can use them everywhere, e.g. hashsplit, bupsplit...
Rob Browning (8):
bup_shared_cflags: add -Winline
Create src/pyutil.c for utility functions
pyutil: add INTEGER_TO_PY as BUP_LONGISH_TO_PY
pyutil: add bup_uint_from_py bup_ulong_from_py bup_ullong_from_py
pyutil: add BUP_ASSIGN_PYLONG_TO_INTEGRAL; use EXPR_SIGNED
_helpers: remove vestigial py2 utimes related code
HashSplitter_init: guard against bits/fanbits overflow
Reject bup_getpwuid bup_getgrgid argument overflow
GNUmakefile | 4 +-
lib/bup/_hashsplit.c | 14 +-
lib/bup/_helpers.c | 368 +++++--------------------------------------
src/bup/pyutil.c | 93 +++++++++++
src/bup/pyutil.h | 54 +++++++
5 files changed, 196 insertions(+), 337 deletions(-)
create mode 100644 src/bup/pyutil.c
create mode 100644 src/bup/pyutil.h
--
2.39.2
- [PATCH 0/8] Move py C utility code to pyutil; guard overflow,
Rob Browning <=
- [PATCH 3/8] pyutil: add INTEGER_TO_PY as BUP_LONGISH_TO_PY, Rob Browning, 2023/05/30
- [PATCH 1/8] bup_shared_cflags: add -Winline, Rob Browning, 2023/05/30
- [PATCH 6/8] _helpers: remove vestigial py2 utimes related code, Rob Browning, 2023/05/30
- [PATCH 2/8] Create src/pyutil.c for utility functions, Rob Browning, 2023/05/30
- [PATCH 4/8] pyutil: add bup_uint_from_py bup_ulong_from_py bup_ullong_from_py, Rob Browning, 2023/05/30
- [PATCH 5/8] pyutil: add BUP_ASSIGN_PYLONG_TO_INTEGRAL; use EXPR_SIGNED, Rob Browning, 2023/05/30
- [PATCH 7/8] HashSplitter_init: guard against bits/fanbits overflow, Rob Browning, 2023/05/30
- [PATCH 8/8] Reject bup_getpwuid bup_getgrgid argument overflow, Rob Browning, 2023/05/30
- Re: [PATCH 0/8] Move py C utility code to pyutil; guard overflow, Rob Browning, 2023/05/30