Fixes pointer was allocated with malloc (by libssh) but freed with
delete. This is not safe and causes undefined behavior.
Details
Details
- Reviewers
dfaure sitter aacid - Group Reviewers
Frameworks - Commits
- R320:a617da3be91c: Fix malloc/delete mismatch
Build and run kio_sftp with address sanitizer
Diff Detail
Diff Detail
- Repository
- R320 KIO Extras
- Branch
- fix_malloc_delete_mismatch (branched from master)
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 9696 Build 9714: arc lint + arc unit
sftp/kio_sftp.cpp | ||
---|---|---|
446 | Use ssh_string_free_char ? |
sftp/kio_sftp.cpp | ||
---|---|---|
446 | +1 "The caller needs to free the memory using ssh_string_free_char()." http://api.libssh.org/stable/group__libssh__sftp.html#gab4860a441da019060f78c8d236d9ec91 |