GNU bug report logs -
#64908
29.1; svg parse failure
Previous Next
Reported by: Daniel Vianna <dmlvianna <at> gmail.com>
Date: Fri, 28 Jul 2023 01:12:02 UTC
Severity: normal
Tags: unreproducible
Found in version 29.1
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 05/08/2023 18:31, Alan Third wrote:
> On Sat, Aug 05, 2023 at 06:24:43PM +0200, David Ponce wrote:
>>
>> Background is white by default.
>
> Thanks.
>
>> Just before call rsvg_handle_get_geometry_for_layer (line 11412 in image.c):
>>
>> (gdb) print zero_rect
>> $1 = {x = 6.9533474147268633e-310, y = 2.4608421688060808e-319, width = 5.8283471538673388e-315, height = 9.8813129168249309e-323}
>> (gdb) print viewbox
>> $2 = {x = 6.9533558057749482e-310, y = 6.9533473517748961e-310, width = 1.4821969375237396e-323, height = 3.0586981611317814e-317}
>> (gdb) print out_logical_rect
>> $3 = {x = 1.2476920383715837e-316, y = 0, width = 0, height = 3.3675983782902914e-317}
>>
>> Just after:
>>
>> (gdb) print zero_rect
>> $4 = {x = 6.9533474147268633e-310, y = 2.4608421688060808e-319, width = 5.8283471538673388e-315, height = 9.8813129168249309e-323}
>> (gdb) print viewbox
>> $5 = {x = 0, y = 0, width = 0, height = 0}
>> (gdb) print out_logical_rect
>> $6 = {x = 0, y = 0, width = 0, height = 0}
>> (gdb) print $eax
>> $7 = 1
>
> Yeah, I see what's going on.
>
> I was under the impression a new struct should always be set to all
> zeroes, but evidently not.
>
> Are you getting any build warnings about it being uninitialised?
>
> Anyway, 3rd go at the patch attached.
Thanks
I just tried patch V3, and the result is the same:
insert-image produces the same black square of 22x22 pixels.
Before call to rsvg_handle_get_geometry_for_layer:
(gdb) print zero_rect
$1 = {x = 0, y = 0, width = 0, height = 0}
(gdb) print viewbox
$2 = {x = 6.9533474147268633e-310, y = 2.4821858047064226e-320, width = 5.8283471538673388e-315, height = 9.8813129168249309e-323}
(gdb) print out_logical_rect
$3 = {x = 6.9533558057749482e-310, y = 6.9533473517748961e-310, width = 1.4821969375237396e-323, height = 3.0586981611317814e-317}
after call to rsvg_handle_get_geometry_for_layer:
(gdb) print $eax
$4 = 1
(gdb) print zero_rect
$5 = {x = 0, y = 0, width = 0, height = 0}
(gdb) print viewbox
$6 = {x = 0, y = 0, width = 0, height = 0}
(gdb) print out_logical_rect
$7 = {x = 0, y = 0, width = 0, height = 0}
This bug report was last modified 1 year and 287 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.