[ 
https://bro-tracker.atlassian.net/browse/BIT-1241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

gclark updated BIT-1241:
------------------------
    Description: 
We should disable strict type sanity checking in HandlePluginResult for bro 
functions that return TYPE_ANY.

This is needed to wrap functions such as Queue::get() where the function is 
declared with a return type of 'any', but often returns items that are of a 
specific type (e.g. record).  Although a returned record value is valid, the 
type sanity check in Func::HandlePluginResult fails because TYPE_RECORD != 
TYPE_ANY.

  was:We should disable strict type sanity checking in HandlePluginResult for 
bro functions that return TYPE_ANY.


> Plugin: HandlePluginResult fix for TYPE_ANY
> -------------------------------------------
>
>                 Key: BIT-1241
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1241
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>            Reporter: gclark
>            Assignee: gclark
>            Priority: Low
>
> We should disable strict type sanity checking in HandlePluginResult for bro 
> functions that return TYPE_ANY.
> This is needed to wrap functions such as Queue::get() where the function is 
> declared with a return type of 'any', but often returns items that are of a 
> specific type (e.g. record).  Although a returned record value is valid, the 
> type sanity check in Func::HandlePluginResult fails because TYPE_RECORD != 
> TYPE_ANY.



--
This message was sent by Atlassian JIRA
(v6.4-OD-04-006#64001)
_______________________________________________
bro-dev mailing list
bro-dev@bro.org
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to