I just found out, that glibc 2.23 has a bug concerning the stdio function fmemopen(), see e.g. Using rewind() on a FILE* opened with fmemopen. (The buggy behaviour described there is not the only one. The problems becomes even more, if the size of the buffer exceeds 8192 bytes...)
Now I am considering to use the freshly released glibc 2.24, which has fixed this bug. However, my aimed user environment are Ubuntu computers, and I suppose it will still take some time until Ubuntu will support glibc 2.24 out of the box.
So, what problems will I face when I try to distribute my code?
Or, some related questions:
- When can I expect that Ubuntu will support glibc 2.24?
- Is it possible to have two libc versions in a system?
- Is it possible to link libc statically?
- Indeed, I would only need the stdio part. Is it possible to use only stdio from 2.24, would this give any benefit?