fixpool: allocate a new chunk on creation
Allocate the first chunk when the fixpool is created. This avoid a undefined behavior reported in issue #413 without requiring an extra comparison in allocate(). * spot/misc/fixpool.hh, spot/misc/fixpool.cc (new_chunk_): New method extracted from allocate(). Use it in the constructor as well. * NEWS: Mention the bug.
This commit is contained in:
parent
a0767e3c1e
commit
645935f796
3 changed files with 23 additions and 14 deletions
2
NEWS
2
NEWS
|
|
@ -34,6 +34,8 @@ New in spot 2.9.0.dev (not yet released)
|
|||
|
||||
Bugs fixed:
|
||||
|
||||
- Work around undefined behavior reported by clang 10.0.0's UBsan.
|
||||
|
||||
- spot::twa_sub_statistics was very slow at computing the number of
|
||||
transitons, and could overflow. It is now avoiding some costly
|
||||
loop of BDD operations, and storing the result using at least 64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue