Commit a45395b
committed
Fixes: possible buffer overrun on interval conversion. Catalog length handling (#217)
* fix overrun when converting a c-string to interval
When converting a C-string to a wide string, the conversion function
0-terminates the output. However, the allocated destination buffer
lacked the space for the terminator. This commit fixes that.
* fix catalog setting
The API function provides the byte count for the wide string name of the
catalog, not the character count, as so far implemented. This commit
fixes the lenght handling.
(cherry picked from commit e390375)1 parent d70c20a commit a45395b
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3105 | 3105 | | |
3106 | 3106 | | |
3107 | 3107 | | |
3108 | | - | |
| 3108 | + | |
3109 | 3109 | | |
3110 | 3110 | | |
3111 | 3111 | | |
| |||
3257 | 3257 | | |
3258 | 3258 | | |
3259 | 3259 | | |
3260 | | - | |
| 3260 | + | |
3261 | 3261 | | |
3262 | 3262 | | |
3263 | 3263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4495 | 4495 | | |
4496 | 4496 | | |
4497 | 4497 | | |
4498 | | - | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
4499 | 4501 | | |
4500 | 4502 | | |
4501 | 4503 | | |
| |||
4514 | 4516 | | |
4515 | 4517 | | |
4516 | 4518 | | |
| 4519 | + | |
| 4520 | + | |
4517 | 4521 | | |
4518 | 4522 | | |
4519 | 4523 | | |
| |||
0 commit comments