aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/index.html
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-10-16 00:50:48 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-10-16 00:50:48 +0200
commit8e4af72622e4a9bb3383085fce28c55444a9d8ee (patch)
tree5535ecb62b1a528788fa0383059a7afd51dd8970 /src/index.html
parent8b54d2c31410fcac43c8903007fe0738312834b0 (diff)
always check the result of rb3_insert(), i.e. detect collisions in RB treesHEADmaster-fmsbw-cimaster
This was already done for the goto table, but by first looking up whether a label already exists in the table. Since the insert operation already reports entries with the same key in the tree, we should rather check that. This saves one goto table lookup per label definition, but on the other hand results in excess allocations in case of encountering a label twice. In teco_help_set(), we did not check for collisions at all. Even thouch they are very unlikely, we could encounter them if a topic is defined on exactly the same position as in .SCITECO_TOPIC foo .SCITECO_TOPIC foo In this case, we leaked memory.
Diffstat (limited to 'src/index.html')
0 files changed, 0 insertions, 0 deletions