[Bro] appending to a vector

David Mandelberg david at mandelberg.org
Wed Jun 19 09:57:32 PDT 2013


On 2013-06-19 12:42, Seth Hall wrote:
> On Jun 19, 2013, at 12:14 PM, David Mandelberg <david at mandelberg.org> 
> wrote:
>
>> What's the recommended way to append to a vector?
>
> Many (most?) of us strongly dislike vectors in Bro.  It's likely
> something that will be improved in the next couple of releases if I
> had to make a guess. :)

Maybe there's a better way to do what I want without vectors. I have a 
somewhat complex record type and I want to store multiple records of 
that type in a container of some sort. I want to be able to iterate over 
the container, but I don't care about order (vector) or uniqueness 
(set). When I tried using sets, I got the error below, so I switched to 
vectors.

internal error: over-ran key in CompositeHash::RecoverVals
Aborted


> Generally though you're going to run into weird poorly defined edge
> cases like this with vectors

:)

-- 
David Eric Mandelberg / dseomn
http://david.mandelberg.org/



More information about the Bro mailing list