I've used the snprintf.c in my own project and found that it cannot print ULLONG_MAX as the convert buffer is too small in fmtint() (off-by-one).
Created attachment 1156 [details] Fixes long long problems
Also other long long issues resolved
I'm very sorry for how long this was ignored. As far as I read it, this was eventually fixed in Samba 4.3 and 4.4 thanks to a patch in bug 11947, so I'll close this as a duplicate of that bug. The master commit was 8814b2556583e1f8965e8bf5a93438d46e8d43e6 Sorry for not addressing this earlier. *** This bug has been marked as a duplicate of bug 11947 ***