[DebianGIS-dev] Bug#542171: hdp dumpvd segfaults when the filename is too long
Ivan Shmakov
oneingray at gmail.com
Tue Aug 18 08:33:20 UTC 2009
Package: hdf4-tools
Version: 4.1r4-22
hdp(1) (as of Debian Lenny) segfaults when asked to dump a VD
when the filename is too long (more than 72 characters or so),
e. g. (NB: this version is also subject to Bug#437098, which was
closed as of 4.1r4-22.):
$ hdp dumpvd -n pressSupp \
./././././././././AIRS.2008.08.18.073.L2.RetSup.v5.2.1.0.D09112224728.hdf
File name: ./././././././././AIRS.2008.08.18.073.L2.RetSup.v5.2.1.0.D09112224728.hdf
Vdata: 13
tag = 1962; reference = 60;
number of records = 100; interlace = FULL_INTERLACE (0);
fields = [pressSupp];
record size (in bytes) = 4;
name = pressSupp; class = <Undefined>;
number of attributes = 0
Segmentation fault
$ hdp dumpvd -n pressSupp \
././././././././AIRS.2008.08.18.073.L2.RetSup.v5.2.1.0.D09112224728.hdf
File name: ././././././././AIRS.2008.08.18.073.L2.RetSup.v5.2.1.0.D09112224728.hdf
Vdata: 13
tag = 1962; reference = 60;
number of records = 100; interlace = FULL_INTERLACE (0);
fields = [pressSupp];
record size (in bytes) = 4;
name = pressSupp; class = <Undefined>;
number of attributes = 0
- field index 0: [pressSupp], type=5, order=1
number of attributes = 0
Loc. Data
00 0.000000 ; 215944740864.000000 ; -0.990681 ; -0.000767 ;
04 0.000000 ; 6934.030273 ; 25223781517893640809481240576.000000 ; -0.000000 ;
08 346.947235 ; -0.000000 ; 0.000000 ; 0.000000 ;
12 -0.000000 ; 391850.000000 ; -1009700.000000 ; -294511566295786141163454464.000000 ;
16 157008896.000000 ; 1293256.000000 ; -6087750366447276130304.000000 ; -0.171968 ;
20 -0.000000 ; 0.000000 ; 3664188745139093504.000000 ; 4200696381440.000000 ;
24 7041205492018976985472372175798272.000000 ; 0.000000 ; -6140625954232730380140544000.000000 ; -0.000000 ;
28 -8318386688.000000 ; -3157018535862493570613362252773851136.000000 ; 0.000000 ; -33.528572 ;
32 -0.000000 ; -0.000092 ; 12681024483425685652970413857177600.000000 ; 0.000000 ;
36 1.917580 ; 0.000000 ; 171277558512806264832.000000 ; -0.000000 ;
40 15785.564453 ; 2747241008207648480184082890752.000000 ; 747.004028 ; -573804672.000000 ;
44 0.000000 ; 0.000000 ; -0.000000 ; -0.000000 ;
48 -0.000000 ; 0.000000 ; -20133937796967338971114061692928.000000 ; 0.000000 ;
52 -0.000000 ; -278131932445720021411782970836839825408.000000 ; 0.000000 ; 0.000000 ;
56 0.000000 ; -13188439037968384.000000 ; -0.000000 ; 0.000000 ;
60 -0.000000 ; 214749564693585380550311202146050113536.000000 ; 0.000000 ; -0.000000 ;
64 265713489338955984631937105920.000000 ; 0.000000 ; -0.000004 ; -0.000000 ;
68 15.172671 ; -0.000000 ; 0.000000 ; -2221545053601038073856.000000 ;
72 0.000000 ; -40715835512695764387629446736117760.000000 ; -0.000000 ; 0.000000 ;
76 -463917078546481152.000000 ; -0.000000 ; -0.000000 ; -0.000000 ;
80 -0.000053 ; -7927654372556531505311569149952.000000 ; 3344721.000000 ; -0.000002 ;
84 0.000000 ; -0.000000 ; 0.000000 ; -0.000000 ;
88 -4841.033203 ; -430.611450 ; 55191411563787500848735584256.000000 ; -0.000000 ;
92 221697471283395376451682304.000000 ; -0.000000 ; -22737162600448.000000 ; 264.923950 ;
96 -0.000000 ; 964765600498725087575277568.000000 ; 1948515529916416.000000 ; 0.000000 ;
$
Apparently, this bug doesn't apply to the version currently in
Debian Sid (4.2r4-4), e. g.:
$ LD_LIBRARY_PATH=/tmp/libhdf4_4.2r4-4_amd64.whole/usr/lib \
/tmp/libhdf4_4.2r4-4_amd64.whole/usr/bin/hdp \
dumpvd -n pressSupp \
/...59-characters.../AIRS.2008.08.18.073.L2.RetSup.v5.2.1.0.D09112224728.hdf
File name: /...59-characters.../AIRS.2008.08.18.073.L2.RetSup.v5.2.1.0.D09112224728.hdf
Vdata: 13
tag = 1962; reference = 60;
number of records = 100; interlace = FULL_INTERLACE (0);
fields = [pressSupp];
record size (in bytes) = 4;
name = pressSupp; class = <Undefined>;
number of attributes = 0
- field index 0: [pressSupp], type=5, order=1
number of attributes = 0
Loc. Data
00 0.016100 ; 0.038400 ; 0.076900 ; 0.137000 ;
04 0.224400 ; 0.345400 ; 0.506400 ; 0.714000 ;
08 0.975300 ; 1.297200 ; 1.687200 ; 2.152600 ;
12 2.700900 ; 3.339800 ; 4.077000 ; 4.920400 ;
16 5.877600 ; 6.956700 ; 8.165500 ; 9.511900 ;
20 11.003800 ; 12.649200 ; 14.455900 ; 16.431801 ;
24 18.584700 ; 20.922400 ; 23.452600 ; 26.182899 ;
28 29.121000 ; 32.274399 ; 35.650501 ; 39.256599 ;
32 43.100101 ; 47.188202 ; 51.527802 ; 56.125999 ;
36 60.989498 ; 66.125298 ; 71.539803 ; 77.239601 ;
40 83.231003 ; 89.520401 ; 96.113800 ; 103.017197 ;
44 110.236603 ; 117.777496 ; 125.645599 ; 133.846207 ;
48 142.384796 ; 151.266403 ; 160.495895 ; 170.078400 ;
52 180.018295 ; 190.320297 ; 200.988693 ; 212.027695 ;
56 223.441498 ; 235.233795 ; 247.408493 ; 259.969086 ;
60 272.919098 ; 286.261688 ; 300.000000 ; 314.136902 ;
64 328.675293 ; 343.617615 ; 358.966492 ; 374.724091 ;
68 390.892609 ; 407.473785 ; 424.469788 ; 441.881897 ;
72 459.711792 ; 477.960693 ; 496.629791 ; 515.719971 ;
76 535.232178 ; 555.166870 ; 575.524780 ; 596.306213 ;
80 617.511230 ; 639.139771 ; 661.192017 ; 683.667297 ;
84 706.565430 ; 729.885681 ; 753.627502 ; 777.789673 ;
88 802.371399 ; 827.371277 ; 852.788025 ; 878.620117 ;
92 904.865906 ; 931.523621 ; 958.591125 ; 986.066589 ;
96 1013.947571 ; 1042.231934 ; 1070.916992 ; 1100.000000 ;
$
--
FSF associate member #7257
More information about the Pkg-grass-devel
mailing list