Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikita Churaev
gtk
Commits
29c0d6fa
Commit
29c0d6fa
authored
Aug 30, 2001
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
io-png.c (png_row_callback): Check that row_num is valid.
parent
97d99169
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
gdk-pixbuf/ChangeLog
gdk-pixbuf/ChangeLog
+4
-0
gdk-pixbuf/io-png.c
gdk-pixbuf/io-png.c
+11
-0
No files found.
gdk-pixbuf/ChangeLog
View file @
29c0d6fa
Thu
Aug
30
08
:
27
:
37
2001
Matthias
Clasen
<
matthiasc
@
poet
.
de
>
*
io
-
png
.
c
(
png_row_callback
):
Check
that
row_num
is
valid
.
Tue
Aug
28
21
:
05
:
26
2001
Matthias
Clasen
<
matthiasc
@
poet
.
de
>
*
io
-
bmp
.
c
(
OneLine
):
Emit
area_updated
signal
with
proper
...
...
gdk-pixbuf/io-png.c
View file @
29c0d6fa
...
...
@@ -563,6 +563,17 @@ png_row_callback (png_structp png_read_ptr,
if
(
lc
->
fatal_error_occurred
)
return
;
if
(
row_num
<
0
||
row_num
>=
lc
->
pixbuf
->
height
)
{
lc
->
fatal_error_occurred
=
TRUE
;
if
(
lc
->
error
&&
*
lc
->
error
==
NULL
)
{
g_set_error
(
lc
->
error
,
GDK_PIXBUF_ERROR
,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE
,
_
(
"Fatal error reading PNG image file"
));
}
return
;
}
if
(
lc
->
first_row_seen_in_chunk
<
0
)
{
lc
->
first_row_seen_in_chunk
=
row_num
;
lc
->
first_pass_seen_in_chunk
=
pass_num
;
...
...
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