2011-01-05 74 views
9

由於OpenSSL使用未初始化的內存,對使用openldap2的libldap的程序進行評估是一件苦差事。存在--ignore-fn選項,但僅適用於Valgrind的地塊子組件。 memcheck是否有類似的排除某些功能出現的痕跡?忽略Valgrind memcheck中的函數

 
==13795== Use of uninitialised value of size 8 
==13795== at 0x6A9C8CF: ??? (in /lib64/libz.so.1.2.3) 
==13795== by 0x6A9A63B: inflate (in /lib64/libz.so.1.2.3) 
==13795== by 0x68035C1: ??? (in /lib64/libcrypto.so.1.0.0) 
==13795== by 0x6802B9F: COMP_expand_block (in /lib64/libcrypto.so.1.0.0) 
==13795== by 0x64ABBCD: ssl3_do_uncompress (in /lib64/libssl.so.1.0.0) 
==13795== by 0x64ACA6F: ssl3_read_bytes (in /lib64/libssl.so.1.0.0) 
==13795== by 0x64A9F2F: ??? (in /lib64/libssl.so.1.0.0) 
==13795== by 0x56B3E61: ??? (in /usr/lib64/libldap-2.4.so.2.5.4) 
==13795== by 0x5E4DB1B: ??? (in /usr/lib64/liblber-2.4.so.2.5.4) 
==13795== by 0x5E4E96E: ber_int_sb_read (in /usr/lib64/liblber-2.4.so.2.5.4) 
==13795== by 0x5E4B4A6: ber_get_next (in /usr/lib64/liblber-2.4.so.2.5.4) 
==13795== by 0x568FB9E: ??? (in /usr/lib64/libldap-2.4.so.2.5.4) 

回答