-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[swig] Change Booster StringArray wrappers API (safety)
Before if the user allocated char** and passed it to the booster with insufficient size it could cause an out of bounds error which is not recoverable from. Added a method to extract the size of the largest feature name from the Booster first and it is used to allocate the memory for the char** so such kind of error is not possible. It is also easier for the user as it has no parameters.
- Loading branch information
alberto.ferreira
committed
Mar 8, 2020
1 parent
9e74b99
commit 02f2d28
Showing
3 changed files
with
60 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters