Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace strdupa with strdup (bazelbuild#15787)
Strdupa has potential to be unsafe thanks to the possibly unbound stack usage. It also generates warnings when compiled on musl. This commit therefore replaces it with properly checked heap allocation using strdup. Fixes bazelbuild#15729 Closes bazelbuild#15763. PiperOrigin-RevId: 458440234 Change-Id: I8c8574f654295086f767b4fc4ca6fc1e59097beb Co-authored-by: Tomas Volf <[email protected]>
- Loading branch information