Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
apk-tools
Commits
73820e4a
Commit
73820e4a
authored
Sep 20, 2013
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive: fix handling of name lengths of exactly 100 bytes
parent
cecb8107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/archive.c
src/archive.c
+3
-0
No files found.
src/archive.c
View file @
73820e4a
...
...
@@ -158,6 +158,9 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser,
};
teis
.
csum
=
NULL
;
buf
.
mode
[
0
]
=
0
;
/* to nul terminate 100-byte buf.name */
buf
.
magic
[
0
]
=
0
;
/* to nul terminate 100-byte buf.linkname */
if
(
memcmp
(
di
->
id
,
"APK2"
,
4
)
==
0
&&
di
->
size
<=
sizeof
(
entry
.
csum
.
data
))
{
entry
.
csum
.
type
=
di
->
size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment