guile-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]