Skip to content

ENT-13522: verify_databases.c: Various bug fixes in CreateTableColumns()#5975

Merged
larsewi merged 4 commits into
cfengine:masterfrom
larsewi:buffer
Dec 4, 2025
Merged

ENT-13522: verify_databases.c: Various bug fixes in CreateTableColumns()#5975
larsewi merged 4 commits into
cfengine:masterfrom
larsewi:buffer

Conversation

@larsewi

@larsewi larsewi commented Dec 3, 2025

Copy link
Copy Markdown
Contributor
  • Changed severity of log level in CreateTableColumns()
  • Fixed use of uninitialized buffer in CreateTableColumns()
  • Fixed buffer overflow in CreateTableColumns()
  • cf_sql.{c,h}: constified arguments in DB query functions

Backported to:

Changed the severity of the log message "Trying to create table..." from
`LOG_LEVEL_ERR` to `LOG_LEVEL_VERBOSE`.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Fixed potential bug causing an uninitialized buffer (containing garbage
data) to be sent as a database query when creating a table in the
databases promise type.

Changelog: Commit
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Fixed potential buffer overflow when creating tables using the databases
promise type.

Ticket: ENT-13552
Changelog: Commit
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi marked this pull request as ready for review December 3, 2025 11:40
@larsewi

larsewi commented Dec 3, 2025

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi larsewi merged commit d95e8a0 into cfengine:master Dec 4, 2025
12 checks passed
@larsewi larsewi deleted the buffer branch April 27, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants