Fix some issues that fsanitize=undefined found

6 jobs for develop in 1 minute and 24 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #8886
docker
build:container

00:00:21

passed #8885
cmake
build:prrt

00:00:33

 
  Test
passed #8888
bash
test:prrt_functional

00:00:06

passed #8887
valgrind
test:prrt_mem

00:00:36

passed #8889
python3 bash
test:prrt_python_bindings

00:00:14

 
  Deploy
passed #8890
python3
deploy:pypi

00:00:14