Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
32602a79
"docs/vscode:/vscode.git/clone" did not exist on "ea34350d882624e421101ffa0477f2d3bf3364e2"
Commit
32602a79
authored
Nov 06, 2021
by
longpanda
Browse files
1.0.58 release
parent
863eafd2
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Ventoy2Disk/Ventoy2Disk/xz-embedded-20130513/linux/lib/decompress_unxz.c
...toy2Disk/xz-embedded-20130513/linux/lib/decompress_unxz.c
+3
-3
Ventoy2Disk/Ventoy2Disk/xz-embedded-20130513/linux/lib/xz/xz_dec_lzma2.c
...toy2Disk/xz-embedded-20130513/linux/lib/xz/xz_dec_lzma2.c
+8
-8
No files found.
Ventoy2Disk/Ventoy2Disk/xz-embedded-20130513/linux/lib/decompress_unxz.c
View file @
32602a79
...
@@ -302,7 +302,7 @@ int INIT unxz(unsigned char *in, int in_size,
...
@@ -302,7 +302,7 @@ int INIT unxz(unsigned char *in, int in_size,
do
{
do
{
if
(
b
.
in_pos
==
b
.
in_size
&&
fill
!=
NULL
)
{
if
(
b
.
in_pos
==
b
.
in_size
&&
fill
!=
NULL
)
{
if
(
in_used
!=
NULL
)
if
(
in_used
!=
NULL
)
*
in_used
+=
b
.
in_pos
;
*
in_used
+=
(
int
)(
b
.
in_pos
)
;
b
.
in_pos
=
0
;
b
.
in_pos
=
0
;
...
@@ -329,7 +329,7 @@ int INIT unxz(unsigned char *in, int in_size,
...
@@ -329,7 +329,7 @@ int INIT unxz(unsigned char *in, int in_size,
* returned by xz_dec_run(), but probably
* returned by xz_dec_run(), but probably
* it's not too bad.
* it's not too bad.
*/
*/
if
(
flush
(
b
.
out
,
b
.
out_pos
)
!=
(
int
)
b
.
out_pos
)
if
(
flush
(
b
.
out
,
(
unsigned
int
)(
b
.
out_pos
)
)
!=
(
int
)
b
.
out_pos
)
ret
=
XZ_BUF_ERROR
;
ret
=
XZ_BUF_ERROR
;
b
.
out_pos
=
0
;
b
.
out_pos
=
0
;
...
@@ -344,7 +344,7 @@ int INIT unxz(unsigned char *in, int in_size,
...
@@ -344,7 +344,7 @@ int INIT unxz(unsigned char *in, int in_size,
}
}
if
(
in_used
!=
NULL
)
if
(
in_used
!=
NULL
)
*
in_used
+=
b
.
in_pos
;
*
in_used
+=
(
int
)(
b
.
in_pos
)
;
xz_dec_end
(
s
);
xz_dec_end
(
s
);
...
...
Ventoy2Disk/Ventoy2Disk/xz-embedded-20130513/linux/lib/xz/xz_dec_lzma2.c
View file @
32602a79
...
@@ -351,7 +351,7 @@ static bool dict_repeat(struct dictionary *dict, uint32_t *len, uint32_t dist)
...
@@ -351,7 +351,7 @@ static bool dict_repeat(struct dictionary *dict, uint32_t *len, uint32_t dist)
if
(
dist
>=
dict
->
full
||
dist
>=
dict
->
size
)
if
(
dist
>=
dict
->
full
||
dist
>=
dict
->
size
)
return
false
;
return
false
;
left
=
min_t
(
size_t
,
dict
->
limit
-
dict
->
pos
,
*
len
);
left
=
(
uint32_t
)
min_t
(
size_t
,
dict
->
limit
-
dict
->
pos
,
*
len
);
*
len
-=
left
;
*
len
-=
left
;
back
=
dict
->
pos
-
dist
-
1
;
back
=
dict
->
pos
-
dist
-
1
;
...
@@ -385,7 +385,7 @@ static void dict_uncompressed(struct dictionary *dict, struct xz_buf *b,
...
@@ -385,7 +385,7 @@ static void dict_uncompressed(struct dictionary *dict, struct xz_buf *b,
if
(
copy_size
>
*
left
)
if
(
copy_size
>
*
left
)
copy_size
=
*
left
;
copy_size
=
*
left
;
*
left
-=
copy_size
;
*
left
-=
(
uint32_t
)
copy_size
;
memcpy
(
dict
->
buf
+
dict
->
pos
,
b
->
in
+
b
->
in_pos
,
copy_size
);
memcpy
(
dict
->
buf
+
dict
->
pos
,
b
->
in
+
b
->
in_pos
,
copy_size
);
dict
->
pos
+=
copy_size
;
dict
->
pos
+=
copy_size
;
...
@@ -427,7 +427,7 @@ static uint32_t dict_flush(struct dictionary *dict, struct xz_buf *b)
...
@@ -427,7 +427,7 @@ static uint32_t dict_flush(struct dictionary *dict, struct xz_buf *b)
dict
->
start
=
dict
->
pos
;
dict
->
start
=
dict
->
pos
;
b
->
out_pos
+=
copy_size
;
b
->
out_pos
+=
copy_size
;
return
copy_size
;
return
(
uint32_t
)
copy_size
;
}
}
/*****************
/*****************
...
@@ -854,7 +854,7 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
...
@@ -854,7 +854,7 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
if
(
tmp
>
s
->
lzma2
.
compressed
-
s
->
temp
.
size
)
if
(
tmp
>
s
->
lzma2
.
compressed
-
s
->
temp
.
size
)
tmp
=
s
->
lzma2
.
compressed
-
s
->
temp
.
size
;
tmp
=
s
->
lzma2
.
compressed
-
s
->
temp
.
size
;
if
(
tmp
>
in_avail
)
if
(
tmp
>
in_avail
)
tmp
=
in_avail
;
tmp
=
(
uint32_t
)
in_avail
;
memcpy
(
s
->
temp
.
buf
+
s
->
temp
.
size
,
b
->
in
+
b
->
in_pos
,
tmp
);
memcpy
(
s
->
temp
.
buf
+
s
->
temp
.
size
,
b
->
in
+
b
->
in_pos
,
tmp
);
...
@@ -877,10 +877,10 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
...
@@ -877,10 +877,10 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
if
(
!
lzma_main
(
s
)
||
s
->
rc
.
in_pos
>
s
->
temp
.
size
+
tmp
)
if
(
!
lzma_main
(
s
)
||
s
->
rc
.
in_pos
>
s
->
temp
.
size
+
tmp
)
return
false
;
return
false
;
s
->
lzma2
.
compressed
-=
s
->
rc
.
in_pos
;
s
->
lzma2
.
compressed
-=
(
uint32_t
)(
s
->
rc
.
in_pos
)
;
if
(
s
->
rc
.
in_pos
<
s
->
temp
.
size
)
{
if
(
s
->
rc
.
in_pos
<
s
->
temp
.
size
)
{
s
->
temp
.
size
-=
s
->
rc
.
in_pos
;
s
->
temp
.
size
-=
(
uint32_t
)(
s
->
rc
.
in_pos
)
;
memmove
(
s
->
temp
.
buf
,
s
->
temp
.
buf
+
s
->
rc
.
in_pos
,
memmove
(
s
->
temp
.
buf
,
s
->
temp
.
buf
+
s
->
rc
.
in_pos
,
s
->
temp
.
size
);
s
->
temp
.
size
);
return
true
;
return
true
;
...
@@ -907,7 +907,7 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
...
@@ -907,7 +907,7 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
if
(
in_avail
>
s
->
lzma2
.
compressed
)
if
(
in_avail
>
s
->
lzma2
.
compressed
)
return
false
;
return
false
;
s
->
lzma2
.
compressed
-=
in_avail
;
s
->
lzma2
.
compressed
-=
(
uint32_t
)
in_avail
;
b
->
in_pos
=
s
->
rc
.
in_pos
;
b
->
in_pos
=
s
->
rc
.
in_pos
;
}
}
...
@@ -917,7 +917,7 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
...
@@ -917,7 +917,7 @@ static bool lzma2_lzma(struct xz_dec_lzma2 *s, struct xz_buf *b)
in_avail
=
s
->
lzma2
.
compressed
;
in_avail
=
s
->
lzma2
.
compressed
;
memcpy
(
s
->
temp
.
buf
,
b
->
in
+
b
->
in_pos
,
in_avail
);
memcpy
(
s
->
temp
.
buf
,
b
->
in
+
b
->
in_pos
,
in_avail
);
s
->
temp
.
size
=
in_avail
;
s
->
temp
.
size
=
(
uint32_t
)
in_avail
;
b
->
in_pos
+=
in_avail
;
b
->
in_pos
+=
in_avail
;
}
}
...
...
Prev
1
2
Next
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