Output-json-http lead to segfault

Problem:
When transfer a large file(larger than normal linux thread stack size 8192KB) by http, function “BodyPrintableBuffer” may lead to segfault dule to dynamically allocated array “printable_buf“ on stack.

Solution:
May be we can add a limit on the array size.

Thanks for reporting this. Would you mind creating a ticket so we can track and address it?

Do you have a pcap that demonstrates the problem? That would be helpful to include in the Redmine ticket if it can be shared.

I had just create a ticket, Bug #8004 output: http eve log lead to segfault

I’m sorry, I don’t have a pcap beacause the problem occured to me one year ago.