Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Linshizhi
ffmpeg.wasm-core
Commits
b33f3246
Commit
b33f3246
authored
Nov 22, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/hnm4video: fix missing newlines in error messages
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
78446f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
hnm4video.c
libavcodec/hnm4video.c
+8
-8
No files found.
libavcodec/hnm4video.c
View file @
b33f3246
...
...
@@ -78,7 +78,7 @@ static void unpack_intraframe(AVCodecContext *avctx, uint8_t *src,
if
(
getbit
(
&
gb
,
&
bitbuf
,
&
bits
))
{
if
(
writeoffset
>=
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to write out of bounds"
);
"Attempting to write out of bounds
\n
"
);
break
;
}
hnm
->
current
[
writeoffset
++
]
=
bytestream2_get_byte
(
&
gb
);
...
...
@@ -99,11 +99,11 @@ static void unpack_intraframe(AVCodecContext *avctx, uint8_t *src,
count
+=
2
;
offset
+=
writeoffset
;
if
(
offset
<
0
||
offset
+
count
>=
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds
\n
"
);
break
;
}
else
if
(
writeoffset
+
count
>=
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to write out of bounds"
);
"Attempting to write out of bounds
\n
"
);
break
;
}
while
(
count
--
)
{
...
...
@@ -202,14 +202,14 @@ static void decode_interframe_v4(AVCodecContext *avctx, uint8_t *src, uint32_t s
left
=
count
;
if
(
!
backward
&&
offset
+
2
*
count
>
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds
\n
"
);
break
;
}
else
if
(
backward
&&
offset
+
1
>=
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds
\n
"
);
break
;
}
else
if
(
writeoffset
+
2
*
count
>
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to write out of bounds"
);
"Attempting to write out of bounds
\n
"
);
break
;
}
if
(
backward
)
{
...
...
@@ -307,10 +307,10 @@ static void decode_interframe_v4a(AVCodecContext *avctx, uint8_t *src,
offset
-=
0x10000
;
if
(
offset
+
hnm
->
width
+
count
>=
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to read out of bounds
\n
"
);
break
;
}
else
if
(
writeoffset
+
hnm
->
width
+
count
>=
hnm
->
width
*
hnm
->
height
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to write out of bounds"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Attempting to write out of bounds
\n
"
);
break
;
}
...
...
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