Skip to content

session server BUGFIX reserve binds by total count - #643

Open
Roytak wants to merge 1 commit into
develfrom
lya-prealloc-count
Open

Roytak wants to merge 1 commit into
develfrom
lya-prealloc-count

Conversation

@Roytak

@Roytak Roytak commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

LYA_PREALLOC() takes the new count of the array, not the number of added items. Reserving only the new binds relied on libyang over-allocating and overflows the registry with libyang containing the LYA_PREALLOC() fix. Works with both old and new libyang.

LYA_PREALLOC() takes the new count of the array, not the number of
added items. Reserving only the new binds relied on libyang
over-allocating and overflows the non-empty registry once libyang
allocates exactly the requested count.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant