ecl/src
Daniel Kochmański 43fef5fad8 streams: address a possible segfault in sequence streams
Byte streams transcoding to :ucs-2 and :ucs-4 don't call ecl_set_stream_elt_type
effectively not initializing .byte_buffer.  Moreover functions seq_in_read_byte8
and seq_out_write_byte8 assume the vector type to be an octet based, and they
increment the stream position and test for its limit according to that.

That means that ecl_binary_read_byte and ecl_binary_write_byte calls would
segfault when seq_in_read_byte8 and seq_out_write_byte8 are called.

Both conditions could be easily mitigated by initializing .byte_buffer manually
and fixing seq_*_*_byte8 functions to account for the byte size, but there is no
need for that, because for these streams we are not using

ecl_binary_*_byte
ecl_eformat_*_byte

so byte8 functions are not called and .byte_buffer is not used.
2025-08-11 10:01:40 +02:00
..
bdwgc bdwgc: update bundled gc to version 8.2.8 2024-12-05 22:21:45 +01:00
c streams: address a possible segfault in sequence streams 2025-08-11 10:01:40 +02:00
clos manual: add documentation for new binary stream interfaces 2025-08-11 10:01:38 +02:00
cmp streams: implement new interfaces for unreading and peeking bytes 2025-08-11 10:01:37 +02:00
doc streams: get rid of last_code slot in the structure 2025-08-11 10:01:40 +02:00
ecl handle *features* entirely in the configure script 2025-07-19 16:33:22 +02:00
gmp build: regenerate configure script with autoconf 2.72 2024-12-05 22:27:10 +01:00
h streams: get rid of last_code slot in the structure 2025-08-11 10:01:40 +02:00
libffi ffi: Update libffi to version 3.3 2019-12-09 19:49:30 +01:00
lsp ffi: convert-to-foreign-string: ensure a cstring 2025-08-11 09:16:00 +02:00
tests tests: add tests for bivalent streams based on sequences 2025-08-11 10:01:40 +02:00
util openbsd: implement FILE_CNT() on opaque FILE 2025-07-23 08:51:20 +00:00
aclocal.m4 openbsd: implement FILE_CNT() on opaque FILE 2025-07-23 08:51:20 +00:00
bare.lsp.in cmp: implement cross compilation from host compiler with different word size 2025-07-19 16:31:55 +02:00
compile.lsp.in handle *features* entirely in the configure script 2025-07-19 16:33:22 +02:00
config.guess build: add a preliminary support for the emscripten target 2023-06-13 22:07:08 +02:00
config.sub build: add a preliminary support for the emscripten target 2023-06-13 22:07:08 +02:00
configure openbsd: implement FILE_CNT() on opaque FILE 2025-07-23 08:51:20 +00:00
configure.ac handle *features* entirely in the configure script 2025-07-19 16:33:22 +02:00
install.sh
Makefile.in tests: make ansi-test a separate target not triggered by make check 2024-03-10 14:48:12 +01:00