[Bro] 送: [PATCH]bugfix for binpac fail to process string const

Chen, Huajun chenhj at cn.fujitsu.com
Fri Sep 4 00:14:31 PDT 2015


I found a bug in binpac and made a patch for it.

Binpac generated c++ source will lost string consts used in pac source.

For example:
type My_Message = record {
}&let {
	d2 = $context.flow.foo("test");

will become the following in generated c++ source:
d2_ = t_context->flow()->foo();

The patch in attachment can solve this problem.

Best Regards,
Chen Huajun

-------------- next part --------------
A non-text attachment was scrubbed...
Name: binpac_cstr_bugfix.patch
Type: application/octet-stream
Size: 433 bytes
Desc: binpac_cstr_bugfix.patch
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20150904/d09a851a/attachment.obj 

More information about the Bro mailing list