Skip to content

回复:CryptoPP 断言错误 ​

原始发布页

打开来源页面
查看 1 个交叉存档

你大概只需把这一行注释掉 cryptopp/secblock.h:187 //assert(false);

告诉我这样是否有效,并留意有没有内存泄漏。

它看起来像是一个模板类,用来确保派生类定义了自己的 allocate 和 deallocate 版本。如果这真是问题所在,而且竟然一路漏到了发布版本,那就奇怪了。大概是误报。

英文原文 ​

展开英文原文

You can probably just comment out the line cryptopp/secblock.h:187 //assert(false);

Let me know if it works, and watch if it memory leaks.

It looks like a template class to make sure the derived class defines its own version of allocate and deallocate. It would be weird if that was the actual problem and it made it all the way to release. Probably a false alarm.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。