Makefile
stringz.h
main.cpp
stringz.cpp
Put these files in a directory, run make, run the compiled executable
'tst'. They compile here but no
particular effort has been made to make them universally portable.
As far as I know the underlying problem is a real problem, but I
haven't tried to look it up in the ARM yet.
Problem is that the construction
static const uint8_t foo[8] = "a";creates an object of size 2 rather than an object of size 8 as specified (sizeof returns 8, but the following object starts at byte 3). This broke some crypto code which required the input to be a multiple of blocksize.