Commit graph

12 commits

Author SHA1 Message Date
Cristian Rodríguez
cba3345215 replace open-coded instances of mempcpy 2023-01-23 13:52:00 +01:00
Anatoly Pugachev
740b6c7387 tests: test_buffer, return EXIT_SUCCESS at the end
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
2022-04-19 11:49:31 +02:00
Karel Zak
cc9e5641ac lib/buffer: fix possible SEGV
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-03-25 08:27:52 +01:00
Karel Zak
4348514362 lib/buffer: make sure buffer without data is zero terminated [asan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-02-11 13:00:05 +01:00
Karel Zak
68463f5af1 lib/buffer: fix buffer reset
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-08-09 11:07:17 +02:00
Karel Zak
9ea47344ca lib/buffer: add support for "safe" encoding
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-08-06 12:02:39 +02:00
Karel Zak
f55be40188 lib/buffer: add possibility to save position in the buffer
This is necessary to use lib/buffer.c in libsmart cols.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-08-05 16:45:07 +02:00
Karel Zak
f60dc88848 lib/buffer: retun size of the buffer and data
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-08-05 16:06:12 +02:00
Karel Zak
3836cd2d21 lib: add missing headers to .c files
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-10-06 15:03:45 +02:00
Karel Zak
f831651e3a lib/buffer: make it robust for static analyzers [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-10-01 13:23:34 +02:00
Karel Zak
c76f79e979 lib/buffer: fix end pointer initilaization
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-09-30 14:35:33 +02:00
Karel Zak
0a9939816c lib/buffer: add simple grow-able buffer
The goal is to use it in libmount when generate options strings
and in libsmartcols to replace libscols_buffer.

Signed-off-by: Karel Zak <kzak@redhat.com>
2020-09-29 12:06:11 +02:00