[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8761: gnutls should use xmalloc not malloc
From: |
Paul Eggert |
Subject: |
bug#8761: gnutls should use xmalloc not malloc |
Date: |
Thu, 02 Jun 2011 11:40:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 |
> I'm OK with the change, but how do I test that it behaves properly?
It's a bit hard to arrange for a test, since the thing you want
to try is to run gnutls when malloc fails. Perhaps you can run
Emacs inside a debugger, and artificially arrange for malloc to
return NULL at exactly the right point. But to be honest, I expect
that the old memory-failure code was never exercised, and that it's
low priority to test the new memory-failure code.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#8761: gnutls should use xmalloc not malloc,
Paul Eggert <=