Commit fd63e1c
src: introduce internal Buffer::Copy() function
Rename the three argument overload of Buffer::New() to Buffer::Copy()
and update the code base accordingly. The reason for renaming is to
make it impossible to miss a call site.
This coincidentally plugs a small memory leak in crypto.getAuthTag().
Fixes: #2308
PR-URL: #2352
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>1 parent 5586cec commit fd63e1cCopy full SHA for fd63e1c
File tree
Expand file treeCollapse file tree
5 files changed
+24
-23
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
5 files changed
+24
-23
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
93 | | - |
| 93 | + |
94 | 94 | |
95 | 95 | |
96 | 96 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
281 | 281 | |
282 | 282 | |
283 | 283 | |
284 | | - |
| 284 | + |
285 | 285 | |
286 | 286 | |
287 | 287 | |
288 | 288 | |
289 | 289 | |
290 | | - |
| 290 | + |
291 | 291 | |
292 | 292 | |
293 | 293 | |
| ||
365 | 365 | |
366 | 366 | |
367 | 367 | |
368 | | - |
| 368 | + |
369 | 369 | |
370 | 370 | |
371 | 371 | |
|
Collapse file
+18-16Lines changed: 18 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1021 | 1021 | |
1022 | 1022 | |
1023 | 1023 | |
1024 | | - |
1025 | | - |
1026 | | - |
1027 | | - |
1028 | | - |
1029 | | - |
| 1024 | + |
| 1025 | + |
| 1026 | + |
| 1027 | + |
| 1028 | + |
| 1029 | + |
1030 | 1030 | |
1031 | 1031 | |
1032 | 1032 | |
| ||
1219 | 1219 | |
1220 | 1220 | |
1221 | 1221 | |
1222 | | - |
| 1222 | + |
1223 | 1223 | |
1224 | 1224 | |
1225 | 1225 | |
| ||
1240 | 1240 | |
1241 | 1241 | |
1242 | 1242 | |
1243 | | - |
| 1243 | + |
1244 | 1244 | |
1245 | 1245 | |
1246 | 1246 | |
| ||
1701 | 1701 | |
1702 | 1702 | |
1703 | 1703 | |
1704 | | - |
| 1704 | + |
1705 | 1705 | |
1706 | 1706 | |
1707 | 1707 | |
| ||
1983 | 1983 | |
1984 | 1984 | |
1985 | 1985 | |
1986 | | - |
| 1986 | + |
1987 | 1987 | |
1988 | 1988 | |
1989 | 1989 | |
| ||
2989 | 2989 | |
2990 | 2990 | |
2991 | 2991 | |
2992 | | - |
| 2992 | + |
| 2993 | + |
2993 | 2994 | |
2994 | 2995 | |
2995 | 2996 | |
| ||
3003 | 3004 | |
3004 | 3005 | |
3005 | 3006 | |
3006 | | - |
| 3007 | + |
3007 | 3008 | |
3008 | 3009 | |
3009 | 3010 | |
| ||
3120 | 3121 | |
3121 | 3122 | |
3122 | 3123 | |
| 3124 | + |
3123 | 3125 | |
3124 | | - |
| 3126 | + |
3125 | 3127 | |
3126 | 3128 | |
3127 | 3129 | |
| ||
3196 | 3198 | |
3197 | 3199 | |
3198 | 3200 | |
3199 | | - |
| 3201 | + |
3200 | 3202 | |
3201 | 3203 | |
3202 | 3204 | |
| ||
3978 | 3980 | |
3979 | 3981 | |
3980 | 3982 | |
3981 | | - |
| 3983 | + |
3982 | 3984 | |
3983 | 3985 | |
3984 | 3986 | |
| ||
4515 | 4517 | |
4516 | 4518 | |
4517 | 4519 | |
4518 | | - |
| 4520 | + |
4519 | 4521 | |
4520 | 4522 | |
4521 | 4523 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
273 | 273 | |
274 | 274 | |
275 | 275 | |
| 276 | + |
276 | 277 | |
277 | | - |
278 | | - |
279 | 278 | |
280 | 279 | |
281 | 280 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
660 | 660 | |
661 | 661 | |
662 | 662 | |
663 | | - |
| 663 | + |
664 | 664 | |
665 | 665 | |
666 | 666 | |
|
0 commit comments