Bro core dump in logical operations with vector and scalar types

Description

This code crashes Bro with a core dump :

event bro_init() {
local v : vector of bool = { T, F, T };
print v && T; # OK, print [T, F, T]
print v || F; # OK, print [T, F, T]
print v && F; # KO, print [F, F, F]

  1. then : internal error: bad reference count [2], then core dumped
    print v || T; # KO, print [T, T, T]

  2. then : internal error: bad reference count [2], then core dumped
    }

Environment

None

Assignee

Unassigned

Reporter

Fran├žois

Labels

External issue ID

None

Components

Fix versions

Affects versions

Priority

Normal
Configure