Topic: uninitialized variables in Sniffer Application
I have been using the Sniffer Application over the past few months - I noticed that once in a very long time, the application crushes with a seg fault. I have set up a testing environment and by inspecting the core files I have discovered the following variables were uninitialized and most likely have caused the seg fault (I was unable to reproduce the crush after fixing those):
in function InitSSL - need to add:
ssl->keys.encryptSz = 0; InitCipherSpecs(&(ssl->specs));
I suspect that after a long enough time, a new session is allocated with a "dirty" encryptSz and this causes a memory corruption followed by a seg fault later on.
second initialization required is interesting: the function "InitCipherSpecs" is actually supplied in the sniffer application but never used, I just added a call in the SSL object initialization method and it appears to have resolved the second seg fault i have encountered.
thanks in advance for considering these additions,