Address some warnings.
Save all of 64 bytes.
mallocs nowdays return void*, so no need to case.
allocator: add some function attributes
Merge branch '8.0' into gobject-introspection
sprintf: do not pre-allocate space for temporary buffer allocation
sprintf: do not use alloca
This commit replaces alloca in sprintf by a simple heap allocator. This
fixes a stack corruption bug which occurs when using certain compilers
(e.g. msvc). The problem occurs when alloca and longjmp are used from
within the same frame.
Do not use alloca in sprintf
this is an attempt to fix a stack corruption bug which occurs in pike
versions compiled with msvc. the bug appears to be triggered by using
both setjmp and alloca in the same frame. even though sprintf does not
directly jump, its calling va_error, which does. in this patch alloca is
replaced by a simple temporary allocator.