[LTP] [PATCH 0/6] Utility functions for string in guarded buffers

Cyril Hrubis chrubis@suse.cz
Fri Aug 11 13:56:40 CEST 2023


First patch adds utilitilty functions for strings in guarded buffers,
which is followed by a few test conversions to the newly introduced API.

Cyril Hrubis (6):
  lib: tst_buffers: Add bufs .str and tst_aprintf()
  syscalls/access04: Make use of guarded buffers
  syscalls/acct01: Make use of guarded buffers
  syscalls/chdir01: Make use use of guarded buffers
  syscalls/chmod01: Make use of guarded buffers
  syscalls/chroot03: Make use of guarded buffers

 include/tst_buffers.h                       | 11 +++
 lib/tst_buffers.c                           | 28 ++++++-
 testcases/kernel/syscalls/access/access04.c | 36 ++++++---
 testcases/kernel/syscalls/acct/acct01.c     | 84 +++++++++++----------
 testcases/kernel/syscalls/chdir/chdir01.c   | 55 +++++++++-----
 testcases/kernel/syscalls/chmod/chmod01.c   | 28 ++++---
 testcases/kernel/syscalls/chroot/chroot03.c | 46 ++++++-----
 7 files changed, 188 insertions(+), 100 deletions(-)

-- 
2.41.0



More information about the ltp mailing list