This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
malloc(0) during exception throw & catch
- To: gcc at gcc dot gnu dot org
- Subject: malloc(0) during exception throw & catch
- From: Denis Perchine <dyp at perchine dot com>
- Date: Fri, 26 May 2000 18:09:31 +0700
Hello,
Small test:
#include <exception>
void bad() {
throw exception();
}
int main() {
try {
bad();
} catch (exception &) {
}
return 0;
}
And all memory races detection tools says that there is call of malloc(0) inside it.
Is there any reasonable explanations to this?
--
Sincerely Yours,
Denis Perchine
----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------