rizin/librz/util
Florian Märkl 9ed8ffd29a Make rz_strbuf_slice() truncate on excessive len (#2115)
It is often useful to get a slice of some maximum len, also accepting
smaller results if the source is not large enough.
This also makes the function always operate on byte indices. Before,
it was inconsistently skipping ansi codes sometimes.
This also fixes potential oob writes in panels.c
2021-12-24 20:27:50 +08:00
..
regex Fix various Coverity bugs (#1569) 2021-09-02 14:10:00 +02:00
alloc.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
annotated_code.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
ascii_table.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
asn1.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
asn1_oids.h Update missing copyrights (#926) 2021-03-29 19:09:25 +08:00
assert.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
astr.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
base85.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
base91.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
big-gmp.c Rename RNum to the RzNum (#1539) 2021-08-29 21:06:29 +02:00
big-ssl.c Rename RNum to the RzNum (#1539) 2021-08-29 21:06:29 +02:00
big.c Rename RNum to the RzNum (#1539) 2021-08-29 21:06:29 +02:00
binheap.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
bitmap.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
buf.c Modification of rz_buf_read* API (#1440) 2021-08-16 18:23:46 +08:00
buf_bytes.c Add rz_buf_new_with_methods() 2021-05-30 10:53:13 +02:00
buf_file.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
buf_io.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
buf_mmap.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
buf_ref.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
buf_sparse.c Add rz_buf_sparse_populated_in() 2021-05-17 17:23:19 +08:00
cache.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
calc.c Rename RNum to the RzNum (#1539) 2021-08-29 21:06:29 +02:00
chmod.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
debruijn.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
event.c Support self-unhooking of RzEvent Callbacks (#1255) 2021-06-30 19:49:30 +02:00
file.c Unicode fixes for Windows (#1703) 2021-09-21 23:14:15 +08:00
flist.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
getopt.c Change -, --, = argument and = command meaning (#930) 2021-04-21 16:20:24 +08:00
graph.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
graph_drawable.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
hex.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
idpool.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
intervaltree.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
json_indent.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
json_parser.c Remove all PJEncodings (#1200) 2021-06-09 15:47:49 +02:00
lib.c Fix autocompletion of rz- commands in rizin shell and rename wrong rz_ (#944) 2021-03-31 16:10:54 +02:00
list.c Doxygen and changed list length size (#1463) 2021-08-17 00:05:04 +02:00
log.c Various fixes on Java, icc/ic and dex rewrite (#1455) 2021-08-17 21:52:11 +02:00
luhn.c Refactoring Hash (#1082) 2021-05-02 20:47:17 +08:00
mem.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
meson.build haiku and dragonflybsd build fixes. (#1767) 2021-10-18 12:33:46 +08:00
name.c Various fixes on Java, icc/ic and dex rewrite (#1455) 2021-08-17 21:52:11 +02:00
pie.c Fix MSVC warnings (#1071) 2021-04-24 00:52:44 +08:00
pj.c Remove use of sdb_fmt() in PJ (#1447) 2021-08-13 20:07:42 +08:00
pkcs7.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
print.c Fix char array subscript warning (#1515) 2021-08-25 17:45:45 +08:00
print_code.c Refactor to use more API in various commands and improve code quality (#821) 2021-03-15 17:28:29 +08:00
prof.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
protobuf.c Fix various Coverity bugs (#1569) 2021-09-02 14:10:00 +02:00
punycode.c Refactoring rz-hash, crypto and hashes interfaces (#1072) 2021-04-26 11:07:52 +02:00
qrcode.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
queue.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
randomart.c Rewrite rz-diff and internal diffing library (#1126) 2021-05-14 19:47:30 +08:00
range.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
rbtree.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
serialize_spaces.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
seven.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
signal.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
skiplist.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
skyline.c Fix #1506 - Fix unsigned integer overflow in RzIO cache skyline (#1512) 2021-08-25 16:36:20 +08:00
spaces.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
stack.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
str.c Fix incompatible return type warnings (#1721) 2021-09-21 23:14:15 +08:00
str_constpool.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
str_search.c Do not use VLA - MSVC does not support them (#1706) 2021-09-21 23:14:15 +08:00
str_trim.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
strbuf.c Make rz_strbuf_slice() truncate on excessive len (#2115) 2021-12-24 20:27:50 +08:00
strpool.c Fix coverity bugs (#1654) 2021-09-13 22:42:25 +08:00
subprocess.c Fix coverity bugs (#1654) 2021-09-13 22:42:25 +08:00
sys.c Move linux specific thing used only in the debugger out of RUtil 2021-09-16 15:51:36 +08:00
syscmd.c Fix few clang-cl warnings 2021-09-04 12:06:07 +02:00
table.c Convert i commands to rzshell (#1238) 2021-09-04 22:37:05 +08:00
thread.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
thread_cond.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
thread_lock.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
thread_sem.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
time.c rz_time_stamp_to_str: Use 31-Dec-1969 epoch instead of hack (#1679) 2021-09-15 00:17:16 +08:00
tree.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
ubase64.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
uleb128.c Split Dwarf Line Parsing in Parsing, Running and Printing 2021-03-19 18:24:40 +01:00
unum.c Rename RNum to the RzNum (#1539) 2021-08-29 21:06:29 +02:00
utf8.c Add missing copyrights (#1570) 2021-09-02 16:39:50 +08:00
utf16.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
utf32.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
vector.c Rewrite Sparse RzBuffer for Efficient Reading 2021-05-11 09:53:51 +02:00
w32-sys.c Use wide version of Windows APIs (#1531) 2021-08-27 15:23:26 +08:00
x509.c SPDX Copyright text for all files based on history 2021-03-05 19:39:15 +08:00
x509.h Update missing copyrights (#926) 2021-03-29 19:09:25 +08:00
zip.c Add rz_deflate* functions and save projects in compressed format (#1446) 2021-08-30 16:54:09 +08:00