Commit 97b6e6d
committed
scitokens_internal: Fix undefined behaviour in CURL write functions.
Since std::vector<>.reserve() does not allocate,
accessing elements may lead to undefined behaviour
(and triggers asserts with build fortification on CentOS 8).
Use resize() as-needed instead to allocate the necessary space.1 parent 946df64 commit 97b6e6d
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
0 commit comments