Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
93eb277a
Commit
93eb277a
authored
Feb 11, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update error messages
parent
8edf556c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
compress.cpp
native/jni/magiskboot/compress.cpp
+5
-1
stream.cpp
native/jni/utils/stream.cpp
+3
-1
No files found.
native/jni/magiskboot/compress.cpp
View file @
93eb277a
...
...
@@ -438,7 +438,11 @@ public:
~
LZ4F_encoder
()
override
{
size_t
len
=
LZ4F_compressEnd
(
ctx
,
out_buf
,
outCapacity
,
nullptr
);
bwrite
(
out_buf
,
len
);
if
(
LZ4F_isError
(
len
))
{
LOGE
(
"LZ4F end of frame error: %s
\n
"
,
LZ4F_getErrorName
(
len
));
}
else
if
(
!
bwrite
(
out_buf
,
len
))
{
LOGE
(
"LZ4F end of frame error: I/O error
\n
"
);
}
LZ4F_freeCompressionContext
(
ctx
);
delete
[]
out_buf
;
}
...
...
native/jni/utils/stream.cpp
View file @
93eb277a
...
...
@@ -163,7 +163,9 @@ bool chunk_out_stream::write(const void *_in, size_t len, bool final) {
void
chunk_out_stream
::
finalize
()
{
if
(
buf_off
)
{
write_chunk
(
_buf
,
buf_off
,
true
);
if
(
!
write_chunk
(
_buf
,
buf_off
,
true
))
{
LOGE
(
"Error in finalize, file truncated
\n
"
);
}
delete
[]
_buf
;
_buf
=
nullptr
;
buf_off
=
0
;
...
...
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