We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submitted by: @ibprovider
https://www.zlib.net/manual.html
Usage of z_stream_s structure: zalloc must return Z_NULL if there is not enough memory for the object.
Firebird code, if I understood correctly, assign to zalloc throw-based allocation func:
void* allocFunc(void*, uInt items, uInt size) { return MemoryPool::globalAlloc(items * size ALLOC_ARGS); //thow ? }
In deflateInit, for example, has five calls of zalloc function and has rollback of initialization if second (and next) call of zalloc return nullptr.
Commits: d27a422 908c660
The text was updated successfully, but these errors were encountered:
summary: Incorrect (throw-based) alloFunc for zlib1. Possible memory leak. => Incorrect (throw-based) allocFunc for zlib1. Possible memory leak.
Sorry, something went wrong.
description: https://www.zlib.net/manual.html
In deflateInit, for example, has five calls of zalloc functions and has rollback of initialization if second (and next) call of zalloc return nullptr.
=>
assignee: Alexander Peshkov [ alexpeshkoff ]
status: Open [ 1 ] => Open [ 1 ]
QA Status: No test => Cannot be tested
Version: 4.0 Beta 1 [ 10750 ]
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 4.0 Beta 2 [ 10888 ]
Fix Version: 3.0.6 [ 10889 ]
AlexPeshkoff
No branches or pull requests
Submitted by: @ibprovider
https://www.zlib.net/manual.html
Usage of z_stream_s structure: zalloc must return Z_NULL if there is not enough memory for the object.
Firebird code, if I understood correctly, assign to zalloc throw-based allocation func:
void* allocFunc(void*, uInt items, uInt size)
{
return MemoryPool::globalAlloc(items * size ALLOC_ARGS); //thow ?
}
In deflateInit, for example, has five calls of zalloc function and has rollback of initialization if second (and next) call of zalloc return nullptr.
Commits: d27a422 908c660
The text was updated successfully, but these errors were encountered: