This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Commit 2da9c24
Fix possible runtime panic in Lgetxattr
If `unix.Lgetxattr` returns an error, then `sz == -1` which will cause a
runtime panic if `errno == unix.ERANGE`.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
(cherry picked from commit 4138cd22abeaa7d1c49a96fa4c0045feb32b847e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: c7cd5d67267c8302941c75785204a2ceeaf8fd3e
Component: engine1 parent a62d4a6 commit 2da9c24
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
14 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | | - | |
18 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | | - | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
0 commit comments