search for: internal_buf

Displaying 2 results from an estimated 2 matches for "internal_buf".

2015 Aug 22
1
[PATCH] for md5.c
Eric, your last patches brought my attention to md5.c, and I noticed that the code in it (both old and current versions) can set ctx->internal_buf.p8 to 0, but leave ctx->capacity unchanged. IMHO it makes sense to update this variable too. Also, 'FLAC__byte* tmp' variable is unnecessary now. -------------- next part -------------- A non-text attachment was scrubbed... Name: md5_alloc.patch Type: application/octet-stream Size: 736...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...les, bytes_per_sample); + const FLAC__bool retval = (EVP_DigestUpdate(ctx, tmp , bytes_needed) == 1); +#if defined(_MSC_VER) + _freea(tmp) +#else + if(!usealloca) free(tmp); +#endif + return retval; +#else if(ctx->capacity < bytes_needed) { FLAC__byte *tmp = realloc(ctx->internal_buf, bytes_needed); if(0 == tmp) { @@ -418,4 +454,6 @@ FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const FLAC__MD5Update(ctx, ctx->internal_buf, bytes_needed); return true; +#endif + } diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c in...