After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777685 - rsvg-convert: Fix error reporting when running from stdin
rsvg-convert: Fix error reporting when running from stdin
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-24 09:58 UTC by Philip Withnall
Modified: 2017-12-13 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rsvg-convert: Fix error reporting when running from stdin (1.24 KB, patch)
2017-01-24 09:58 UTC, Philip Withnall
none Details | Review
rsvg-convert: Fix error reporting when running from stdin (1.30 KB, patch)
2017-01-24 09:59 UTC, Philip Withnall
none Details | Review

Description Philip Withnall 2017-01-24 09:58:04 UTC
Trivial patch attached.
Comment 1 Philip Withnall 2017-01-24 09:58:08 UTC
Created attachment 344098 [details] [review]
rsvg-convert: Fix error reporting when running from stdin

When no input files are provided, args may be NULL, but n_args is set to
1 by the code handling stdin. This can result in a dereference of
args[0] when it isn’t set. Avoid that by setting args to a dummy array
of ['stdin'].

Coverity ID: 1388557
Comment 2 Philip Withnall 2017-01-24 09:59:24 UTC
Created attachment 344100 [details] [review]
rsvg-convert: Fix error reporting when running from stdin

When no input files are provided, args may be NULL, but n_args is set to
1 by the code handling stdin. This can result in a dereference of
args[0] when it isn’t set. Avoid that by setting args to a dummy array
of ['stdin'].

Coverity ID: 1388557
Comment 3 Philip Withnall 2017-08-07 12:23:31 UTC
Federico, ping?
Comment 4 GNOME Infrastructure Team 2017-12-13 18:26:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/160.