Skip to content

Conversation

@larsewi
Copy link
Contributor

@larsewi larsewi commented Dec 3, 2025

  • 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 from #5975

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 <[email protected]>
(cherry picked from commit 59f11a5)
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 <[email protected]>
(cherry picked from commit 832ad34)
Fixed potential buffer overflow when creating tables using the databases
promise type.

Ticket: ENT-13552
Changelog: Commit
Signed-off-by: Lars Erik Wik <[email protected]>
(cherry picked from commit ff4f9a6)
Signed-off-by: Lars Erik Wik <[email protected]>
(cherry picked from commit 6b6a90d)
@larsewi
Copy link
Contributor Author

larsewi commented Dec 3, 2025

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

@larsewi larsewi merged commit e24835c into cfengine:3.21.x Dec 4, 2025
11 checks passed
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.

2 participants