-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathChangeLog
More file actions
6603 lines (4281 loc) · 203 KB
/
ChangeLog
File metadata and controls
6603 lines (4281 loc) · 203 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2026-04-14 Morten Welinder <terra@gnome.org>
* gsf/gsf-doc-meta-data.c (gsf_doc_prop_new): Initialize
ref_count.
2026-03-16 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2026-03-16 Morten Welinder <terra@gnome.org>
* Release 1.14.56
2026-01-13 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2026-01-13 Morten Welinder <terra@gnome.org>
* Release 1.14.55
2025-12-24 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2025-12-18 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msole.c (ole_dirent_new): reduce stack frame
size; eliminate need for return value; tail call optimization.
Fixes #43. Hopefully.
2025-12-09 Morten Welinder <terra@gnome.org>
* Release 1.14.54
2025-11-06 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_read): Fix checks for reading
past the end. Fixes #41.
2024-10-01 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2024-09-30 Morten Welinder <terra@gnome.org>
* Release 1.14.53
2024-09-26 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msole.c (ole_init_info): Don't over-allocate for
"seen_before". A multiply should have been a divide. At the same
time, use a GByteArray instead of a raw pointer. (We could use a
bit array, but that's more work and we're already cutting the
allocation down by 16384.)
(ole_init_info): Range check num_blocks.
2024-08-31 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msvba.c (vba_extract_module_source):
force nul-termination of the data.
2024-02-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2024-02-04 Morten Welinder <terra@gnome.org>
* Release 1.14.52
2023-11-02 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2023-11-02 Morten Welinder <terra@gnome.org>
* Release 1.14.51
2023-04-22 Morten Welinder <terra@gnome.org>
* thumbnailer/main.c (msole_thumbnail): Fix crash. #29.
2023-04-21 Morten Welinder <terra@gnome.org>
* thumbnailer/main.c (write_thumbnail): Plug leak.
(read_thumbnail_and_write): Plug leak.
2022-07-13 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2022-07-13 Morten Welinder <terra@gnome.org>
* Release 1.14.50
2022-03-20 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2022-03-20 Morten Welinder <terra@gnome.org>
* Release 1.14.49
2021-12-27 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2021-12-27 Morten Welinder <terra@gnome.org>
* Release 1.14.48
2021-12-02 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-zip.c (gsf_infile_zip_get_property): Add "zip64"
property.
2020-03-23 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2020-03-23 Morten Welinder <terra@gnome.org>
* Release 1.14.47
2020-02-20 Morten Welinder <terra@gnome.org>
* thumbnailer/main.c (main): Plug leak.
* gsf/gsf-infile-msole.c (datetime_from_filetime): Propagate NULL
datetime. Fixes #19.
2020-01-28 Morten Welinder <terra@gnome.org>
* gsf/gsf-docprop-vector.c: ignore deprecation warnings only very
locally.
2019-10-18 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-gzip.c (gsf_output_gzip_class_init): Add
"deflate-level" attribute to control compression. Must be set
before first write. Based on code from Allin Cottrell.
2019-10-16 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-memory.c (gsf_output_memory_steal_bytes): New
function. Code from Allin Cottrell.
2019-05-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2019-05-04 Morten Welinder <terra@gnome.org>
* Release 1.14.46
2019-02-04 Morten Welinder <terra@gnome.org>
* tools/gsf-vba-dump.c (test): Fix problem with error reporting.
2018-12-18 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-12-18 Morten Welinder <terra@gnome.org>
* Release 1.14.45
2018-12-17 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_write): Fix problem
with seeks in small blocks. This alone would also have fixed #14.
2018-12-16 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_parse): Don't convert the
terminator.
(msole_metadata_write_section): Don't seek beyond end of stream --
use plain writes instead. Fixes #14.
2018-08-08 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-08-08 Morten Welinder <terra@gnome.org>
* Release 1.14.44
2018-08-02 Morten Welinder <terra@gnome.org>
* gsf/*.h: Drop G_GNUC_CONST annotations on get_type functions.
It causes gsf_init_dynamic to be mostly a no-op with some gcc
versions.
2018-04-29 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_metadata_write_string): Write the
converted length, not the pre-iconv length. Fixes #795612.
2018-04-19 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2018-04-19 Morten Welinder <terra@gnome.org>
* Release 1.14.43
2018-04-10 Morten Welinder <terra@gnome.org>
* gsf/*.c: various introspection fixes, mostly from bug 794777 by
Corentin Noël and Rico Tzschichholz. The occasional extra fix by
me.
2018-03-22 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Set modtime.
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Use
gsf_input_set_modtime_from_stat.
* gsf/gsf-input.c (gsf_input_set_modtime_from_stat): New internal
function.
2017-11-11 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2017-11-11 Morten Welinder <terra@gnome.org>
* Release 1.14.42
2017-01-22 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-textline.c (gsf_input_textline_read): Make current
file position follow the source's.
(gsf_input_textline_seek): Ditto.
(gsf_input_textline_utf8_gets): Ditto.
(gsf_input_textline_dup): Duplicate name too.
2016-12-02 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-12-02 Morten Welinder <terra@gnome.org>
* Release 1.14.41
2016-11-30 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-tar.c (tar_directory_for_file): Handle the case
where what we expected to be a directory is a file. (That implies
a corrupted tar file.) Thanks to Behzad Najjarpour Jabbari,
Secunia Research at Flexera Software for discovering this.
2016-08-20 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-08-20 Morten Welinder <terra@gnome.org>
* Release 1.14.40
2016-06-29 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-06-29 Morten Welinder <terra@gnome.org>
* Release 1.14.39
2016-06-17 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-06-17 Morten Welinder <terra@gnome.org>
* Release 1.14.38
2016-06-04 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (zip_trailer64_write): Fix ZIP64 EOCD size
to exclude leading 12 bytes. From Felix Bünemann
<buenemann@louis.info>
* tests/LibGsfTest.pm: Use 7z for archive testing when available.
It's stricter.
2016-05-30 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-05-30 Morten Welinder <terra@gnome.org>
* Release 1.14.37
2016-04-18 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-tar.c (unpack_octal): Allow a terminating space
instead of NUL. Fixes #765099.
2016-02-12 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-02-12 Morten Welinder <terra@gnome.org>
* Release 1.14.36
2016-02-09 Jean Brefort <jean.brefort@normalesup.org>
* gsf/gsf-output-gio.c (gsf_output_gio_new_full),
(gsf_output_gio_close), (gsf_output_gio_init): Remove the unused GFile
member. Fix a few criticals.
2016-02-06 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (gsf_open_pkg_open_rel): Move
parent-reffing to after we handle absolute references. Fixes
#761648.
* gsf/gsf-libxml.c (gsf_xml_in_doc_parse): Plug leak.
2016-02-06 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2016-02-06 Morten Welinder <terra@gnome.org>
* Release 1.14.35
2016-01-21 Morten Welinder <terra@gnome.org>
* tools/gsf.c (main): Set of locale stuff. Patch by Ting-Wei Lan.
Also set up gettext stuff.
2016-01-13 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-zip.c (gsf_infile_zip_read): Improve error
handling. Fixes #760543.
2016-01-01 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_metadata_write_section): Handle the
no-property case sanely. Fixes #760047.
2015-07-28 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-07-28 Morten Welinder <terra@gnome.org>
* Release 1.14.34
2015-07-07 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msole.c (ole_seek_block): Fix seek error check.
2015-07-06 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msole.c (ole_init_info): Add debug code.
(gsf_infile_msole_new_child): Fix error check from seek.
2015-07-02 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_parse): Exit loop if no
progress. Fixes #751273.
2015-06-25 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-textline.c (gsf_input_textline_utf8_gets): Go
character-by-character. This is the right thing to do and also
prevents stepping past the end.
2015-06-17 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (gsf_open_pkg_open_rel): Improve
handling of absolute references. Fixes #751120.
2015-06-11 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_read): Fuzzed file fix.
Fixes #750809.
2015-05-15 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (zip_dirent_write): Fix portability issue.
2015-05-10 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (open_pkg_rel_begin): Be more careful
in removing entries partially overwritten by dupes. [#749183]
2015-05-09 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msvba.c (vba_dir_read): Free only once.
(gsf_vba_inflate): Don't crash after error. [#749169]
2015-04-27 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_prop_read): Reduce size available
for property by 4 since that is taken by the typeid.
2015-04-18 Morten Welinder <terra@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_get_output): Doc fix.
2015-04-16 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-04-16 Morten Welinder <terra@gnome.org>
* Release 1.14.33
2015-04-09 Morten Welinder <terra@gnome.org>
* tests/test-xml.c: Add meaning code in here.
* gsf/gsf-libxml.c (gsf_xml_out_end_element): Only indent closing
tag if we're at the beginning of the line because we
pretty-printed the previous closing tag.
(gsf_xml_out_get_pretty_print, gsf_xml_out_set_pretty_print): New
convenience functions.
2015-03-30 Morten Welinder <terra@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_doc_add_nodes): Introduce new flag
GSF_XML_2ND to explicitly identify duplicate nodes.
2015-03-13 Morten Welinder <terra@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_set_silent_unknowns): New function.
2015-03-04 Morten Welinder <terra@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_out_add_float): Do a better job of
saving all precision.
2015-03-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-03-04 Morten Welinder <terra@gnome.org>
* Release 1.14.32
2015-02-22 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c
(gsf_outfile_open_pkg_set_content_type): Allow a NULL content type
for when defaults cover the file.
2015-02-09 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (gsf_open_pkg_write_content_override):
Release children here, not in gsf_outfile_open_pkg_close.
2015-02-08 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (gsf_outfile_open_pkg_close): Plug
leak.
2015-02-06 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (gsf_outfile_open_pkg_close): Also add
vml extension.
* gsf/gsf-libxml.c (gsf_xml_in_start_element): Nodes inside
unknown nodes are themselves unknown, even if they would appear to
be known had the intervening unknown nodes not been there. In
other words: don't lookup nodes while we are parsing an unknown
tag's contents.
2015-02-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2015-02-04 Morten Welinder <terra@gnome.org>
* Release 1.14.31
2015-02-01 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile.c (gsf_infile_child_by_vaname): Fix age-old leak.
2015-01-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* gsf/gsf-opendoc-utils.c (gsf_ooo_ns): add 2 new localc namespaces
* gsf/gsf-opendoc-utils.h: add new enum values to support above
name spaces)
2014-12-15 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (special_mimetype_dirent): New function.
(zip_dirent_write, zip_header_write): Don't write a special unix
mtime field for the special mimetype entry.
(zip_close_root): Sort by offset. Note: this may not be necessary
or even desired, but help with the zipdetails utility.
(zip_init_write): Make the special mimetype default to !zip64.
(gsf_outfile_zip_new): Null the error return value.
(zip_dirent_write, zip_header_write): Use extract version 2.0 for
the !zip64 case.
2014-12-14 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (zip_dirent_write): Fix test for writing
ignore header.
2014-12-02 Morten Welinder <terra@gnome.org>
* tools/gsf.c (gsf_create): Allow "-" for output to stdout.
* tests/LibGsfTest.pm (test_valgrind): Dump valgrind output when
verbose.
* tools/gsf.c (gsf_create): Use our perfectly fine GType macros
instead of a home grown enum.
2014-12-01 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-stdio.c (follow_symlinks): Plug leak.
* gsf/gsf-outfile-zip.c (zip_dirent_write): Handle the case of
small file beyond offset 4G. The header record won't be zip64,
but the dirent needs to.
(zip_dirent_write): Mark this entry as needing 4.5 to extract if
the central directory entry uses zip64, even if the local header
does not.
2014-11-30 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.h (GSF_LE_SET_GU?INT{16,32,64}): Add casts to make
things more function-like and avoid implementation defined
behaviour.
* gsf/gsf-outfile-zip.c (zip_dirent_write): The the archive is in
auto mode and the member is not using a zip64 extra field, use an
IGNORE extra field to work around known zipinfo bug.
* tools/gsf.c (gsf_create, load_recursively): Add error checks on
close.
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_write): When zip64 is
forced off, don't allow writing beyond the 4G barrier.
(zip_header_write): If we write a real zip64 entry, mark the
dirent as being zip64.
(zip_close_root): If any dirent is zip64, the archive is.
(zip_output_block): Catch overflow of csize.
(zip_header_patch_sizes): Resolve zip64 to FALSE if it remained
auto until now.
2014-11-29 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (zip_header_write): Determine if the sink
is seekable. Use a DDESC, if not.
* gsf/gsf-output-gio.c (gsf_output_gio_write): Simplify and handle
the zero bytes cases better.
(gsf_output_gio_new_full): Check seekability here and thus only
once.
* gsf/gsf-output-iochannel.c (gsf_output_iochannel_seek): Check
for is_seekable before trying to do so.
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_class_init): Properly
install zip64 property.
(zip_header_write): Fix auto-zip64 mode's writing of sizes.
(zip_ddesc_write): Do write signature.
2014-11-28 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (zip_dirent_new_out): Store mtime in zip
files, as long as they fit.
2014-11-27 Morten Welinder <terra@gnome.org>
* gsf/gsf-input.c (gsf_input_copy): Minor cleanups.
* tools/gsf.c (load_recursively): Complain if gsf_input_copy
fails.
2014-11-23 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-zip.c (zip_dirent_new_in): Fix reading of
extended field. csize and usize are swapped in there.
(zip_dirent_new_in): Read the right amount of variable data.
(zip_read_dirents): Check trailer64 signature.
* gsf/gsf-outfile-zip.c (zip_dirent_write): Fix file mode.
2014-11-22 Morten Welinder <terra@gnome.org>
* tools/gsf.c (open_archive): Plug leak.
* gsf/gsf-infile-stdio.c (GsfInfileStdio): Use a GPtrArray instead
of a list for performance with large directories.
2014-11-20 Morten Welinder <terra@gnome.org>
* gsf/gsf-input.c (gsf_input_read0): Fix 64-bit issue.
* gsf/gsf-utils.c (gsf_input_dump): Fix 64-bit issue. Read larger
blocks.
* gsf/gsf-infile-zip.c (zip_read_dirents): Handle zip64 format for
archives with 65535 or more members.
(ZipInfo): Larger fields; use GPtrArray for speed. All users
changed.
(zip_find_trailer): Fix endianess issue.
(gsf_infile_zip_read): Fix 64-bit issue.
(zip_dirent_new_in): Handle zip64 extra fields.
* gsf/gsf-zip-impl.h (GsfZipVDir): Use a GPtrArray for speed. All
users changed.
* gsf/gsf-input.c: Update to new introspection syntax.
2014-11-15 Morten Welinder <terra@gnome.org>
* gsf/gsf-opendoc-utils.c (od_meta_user_defined_end): Plug leak.
2014-11-01 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (gsf_msole_inflate): Don't place
uninitialized values into the output even for corrupted files.
* gsf/gsf-input-memory.c (gsf_input_mmap_new): Plug leak.
* gsf/gsf-infile-msvba.c (vba_dir_read): Plug leak.
* gsf/gsf-structured-blob.c (blob_finalize, blob_dup)
(blob_child_by_name, gsf_structured_blob_read): Reduce CRITICALs
on corrupted files.
2014-10-28 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.c: Avoid deprecated g_type_init.
* gsf/gsf-msole-utils.c (msole_prop_parse): Plug leak.
2014-04-17 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_set_property): Add new
property default-level.
2014-03-19 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-03-19 Morten Welinder <terra@gnome.org>
* Release 1.14.30
2014-03-06 Jean Brefort <jean.brefort@normalesup.org>
* gsf/gsf-input-http.c (make_local_copy), (gsf_input_http_new):
make a local copy. nanohttp does not always report the correct size.
[see #724970]
2014-03-05 Morten Welinder <terra@gnome.org>
* gsf/gsf-input-gio.c (gsf_input_gio_new): Always make local copy.
glib reports wrong size.
2014-02-28 Morten Welinder <terra@gnome.org>
* tools/gsf.c (main): Activate translations. Patch from
Juhani Numminen <juhaninumminen0@gmail.com>
2014-01-04 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2014-01-04 Morten Welinder <terra@gnome.org>
* Release 1.14.29
2013-12-14 Morten Welinder <terra@gnome.org>
* gsf/gsf-open-pkg-utils.c (open_pkg_rel_begin): Handle duplicate
or missing id and type. Fixes #720458.
2013-12-07 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.h (GSF_LE_GET_GUINT32): cast unsigned char to
guint32 before left-shifting by 24. This avoids an implicit cast
to int followed by an overflowing left-shift which is undefined in
the C standard.
2013-09-13 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-zip.c (zip_child_init): Fix translation marking,
plug leak. Fixes #706937.
2013-08-23 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-stdio.c (gsf_outfile_stdio_new_valist): Allow
the directory to exist. Patch from Allin Cottrell. #706219.
2013-08-01 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-08-01 Morten Welinder <terra@gnome.org>
* Release 1.14.28
2013-08-01 Morten Welinder <terra@gnome.org>
* configure.ac (set_more_warnings): When checking for warnings
flags, include <stdio.h> for mingw's benefit.
2013-07-30 Jean Brefort <jean.brefort@normalesup.org>
* gsf/gsf-libxml.c (gsf_xml_parser_context_full): allow the huge libxml
parser mode so that gnumeric can load large images. [#705100]
2013-07-11 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_metadata_write_string): Protect
against strings that cannot be converted. See bug #703952.
2013-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* gsf/gsf-infile-msole.c (gsf_infile_msole_read): use the
correct conversion specifier
2013-06-23 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-06-23 Morten Welinder <terra@gnome.org>
* Release 1.14.27
2013-06-23 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-ar.[ch]: Delete.
2013-06-21 Morten Welinder <terra@gnome.org>
* gsf/gsf-libxml.c (gsf_xml_in_end_document): Plug leak.
2013-06-19 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* gsf/gsf-timestamp.c (gsf_timestamp_load_from_string): perfrom
some range checking to avoid crashing in glib.
2013-04-20 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msvba.c (gsf_vba_inflate): Plug multiple leaks.
* gsf/gsf-infile-msole.c (gsf_infile_msole_read): Don't read
beyond the number of bat blocks we have. (We can have less blocks
than expected when the bat chain is found to be circular.) Don't
optimize seek; the lower levels will do that just fine.
(ole_make_bat): Simplify.
2013-03-08 Morten Welinder <terra@gnome.org>
* gsf/gsf-input.c (gsf_input_set_modtime): Change to transfer-none
semantics. All callers changed.
* gsf/gsf-output.c (gsf_output_set_modtime): Change to
transfer-none semantics. All callers changed.
* gsf/gsf-outfile-msole.c (gsf_outfile_msole_close_root): Set
modtime when available.
* gsf/gsf-output.c (gsf_output_set_property): Make name property
writable.
* gsf/gsf-input.c (gsf_input_dup): Simplify. Prevent leak of
container ref if derived class set one.
2013-03-07 Morten Welinder <terra@gnome.org>
* gsf/gsf-utils.c (gsf_property_settings_find): New function.
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_new_child): Don't add
modtime is caller did.
* tools/gsf.c (load_recursively): Simlify using, of all things,
gsf. Avoid crazy memory usage. Take care of modtime.
2013-03-04 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-tar.c (tar_init_info): Also read mtime from
archive.
(gsf_infile_tar_child_by_index): Set modtime of input when
possible.
* tools/gsf.c (ls_R): Print also modtime when available.
* gsf/gsf-infile-zip.c (gsf_infile_zip_new_child): Set modtime of
child.
(zip_dirent_new_in): Read modtime from file.
* gsf/gsf-outfile-zip.c (gsf_outfile_zip_new_child): Parent's
modtime is child's default.
(gsf_outfile_zip_constructor): Default modtime is now.
* configure.ac: Check for utime.h and sys/utime.h. Check for
stat.st_mtimensec and stat.st_mtim.tv_nsec.
* tests/test-cp.c (test): Copy modtime too.
* gsf/gsf-input.c (gsf_input_get_property): Add new modtime
property.
* gsf/gsf-output.c (gsf_output_get_property): Ditto.
* gsf/gsf-input-gzip.c (check_header): Set modtime when available.
* gsf/gsf-input-stdio.c (gsf_input_stdio_new): Set modtime.
* gsf/gsf-output-stdio.c (gsf_output_stdio_close): Set modtime of
resulting file.
* gsf/gsf-input.c (gsf_input_uncompress): Fix potential failure
with bzip'd input.
2013-03-03 Morten Welinder <terra@gnome.org>
* gsf/gsf-command-context.c: Remove.
* gsf/gsf-command-context.h: Remove.
* gsf/gsf-io-context.c: Remove.
* gsf/gsf-io-context.h: Remove.
* gsf/gsf-output-transaction.c: Remove.
* gsf/gsf-output-transaction.h: Remove.
* gsf/Makefile.am: Remove references to those files.
2013-02-27 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
2013-02-27 Morten Welinder <terra@gnome.org>
* Release 1.14.26
2013-02-25 Jean Brefort <jean.brefort@normalesup.org>
* tests/test-msole1.c (test): fix build.
2013-02-23 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile.c (gsf_infile_child_by_name)
(gsf_infile_child_by_vname, gsf_infile_child_by_vaname)
(gsf_infile_child_by_aname): Doc improvements.
* gsf/gsf-input.c (gsf_input_uncompress): Avoid HAVE_BZ2
conditionals.
* gsf/gsf-utils.c (gsf_init_dynamic): Register the tar type too.
* gsf/gsf-input.c (gsf_input_read): Detect overflow.
2013-02-20 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_metadata_write_section): Add sanity
check.
2013-02-17 Morten Welinder <terra@gnome.org>
* configure.ac (set_more_warnings): Improve support for clang.
2013-02-05 Jean Brefort <jean.brefort@normalesup.org>
* doc/gsf-sections.txt: fix gtk-doc warnings.
* gsf/gsf-opendoc-utils.c: ditto.
* tools/gsf.c (get_meta_data): don't use deprecated symbols.
2013-01-26 Morten Welinder <terra@gnome.org>
* gsf/gsf-outfile-msole.c (ole_write_bat, ole_write_const): Bunch
things up as large writes instead of piles of little ones.
2013-01-19 Valek Filippov <frob@df.ru>
* gsf/gsf-infile-msvba.c,.h (gsf_vba_inflate): Fix for short streams.
2013-01-15 Jean Brefort <jean.brefort@normalesup.org>
* configure.ac: renamed configure.in and update obsolete macros.
* configure.in: ditto.
2013-01-07 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-stdio.c (chown_wrapper): New function.
(chmod_wrapper, access_wrapper): Eliminate in favour of g_chmod
and g_access.
* configure.in: Check for g_chown instead of g_chmod and g_access
which we can now assume.
* gsf/gsf-infile-zip.c (zip_child_init): Attempt working around
another clang false positive.
* gsf/gsf-input-memory.c (gsf_input_memory_new_clone): For around
a clang false positive.
* gsf/*.c: Stop pretending that g_object_new can return NULL.
2013-01-05 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-gio.c (gsf_output_gio_new_full): New function
factored out from gsf_output_gio_new.
(gsf_output_gio_new_for_path, gsf_output_gio_new_for_uri): Use
gsf_output_gio_new_full for proper error handling.
2013-01-05 Morten Welinder <terra@gnome.org>
* gsf/gsf-output-gio.c (gsf_output_gio_new_for_uri): Use
preconditions for programming errors.
(gsf_output_gio_write): Drop unneeded cast.
* gsf/gsf-libxml.c (gsf_xml_out_add_gvalue): Deal with G_TYPE_CHAR
always being signed char.
(gsf_xml_gvalue_from_str): Ditto.
* gsf/gsf-msole-utils.c (msole_prop_parse): Ditto.
2013-01-05 Valek Filippov <frob@df.ru>
* gsf/gsf-infile-msvba.c,.h (gsf_vba_inflate): Fix based on
[MS-OVBA] and test files. Fixes #656531.
2012-12-20 =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@gmail.com>
* gsf/gsf-infile-msole.c (ole_seek_block): Factor out from
gsf_infile_msole_read.
2012-12-05 Morten Welinder <terra@gnome.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_child_by_index)
(gsf_infile_msole_name_by_index): Avoid casts.
2012-12-05 Paolo Bonzini <bonzini@gnu.org>
* gsf/gsf-infile-msole.c (gsf_infile_msole_dup): Make this a
simple wrapper over gsf_infile_msole_dup. Fixes #689706.
2012-11-13 Morten Welinder <terra@gnome.org>
* configure.in: Post-release bump.
2012-11-13 Morten Welinder <terra@gnome.org>
* Release 1.14.25
2012-10-28 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_metadata_write_string): Pad to
4-byte boundary if char_size>1 as per spec.
2012-10-27 Morten Welinder <terra@gnome.org>
* gsf/gsf-msole-utils.c (msole_metadata_write_string): New
function to take codepage into account.
(msole_metadata_write_prop, cb_write_dict): Use
msole_metadata_write_string.
* gsf/gsf-doc-meta-data.c (gsf_doc_meta_data_insert): Initialize
->ref_count.
2012-10-16 Morten Welinder <terra@gnome.org>
* tools/gsf.c (main): Add commands to create zip and ole files.
Patch from jorilx@gmail.com, see bug 683788.
2012-09-03 Morten Welinder <terra@gnome.org>
* configure.in: Post-release bump.
2012-09-03 Morten Welinder <terra@gnome.org>
* Release 1.14.24
2012-08-02 Jean Brefort <jean.brefort@normalesup.org>
* doc/Makefile.am: fixed as many introspection and gtk-doc issues as
possible.
* doc/gsf-sections.txt: ditto.
* gsf/Makefile.am: ditto.
* gsf/gsf-blob.c: ditto.
* gsf/gsf-blob.h: ditto.
* gsf/gsf-clip-data.c: ditto.
* gsf/gsf-clip-data.h: ditto.
* gsf/gsf-infile-msvba.c (gsf_input_find_vba): ditto.
* gsf/gsf-infile-zip.c (vdir_insert), (zip_info_unref): ditto.
* gsf/gsf-libxml.c (gsf_xml_gvalue_from_str),
(gsf_xml_out_get_output): ditto.
* gsf/gsf-msole-utils.c (msole_prop_parse),
(gsf_doc_meta_data_read_from_msole), (gsf_msole_metadata_read),
(gsf_doc_meta_data_write_to_msole), (gsf_msole_metadata_write):
* gsf/gsf-msole-utils.h: ditto.
* gsf/gsf-open-pkg-utils.h: ditto.
* gsf/gsf-opendoc-utils.c (gsf_odf_get_version_string),
(gsf_odf_get_version), (get_gsf_odf_version), (gsf_odf_get_ns),
(get_gsf_ooo_ns), (gsf_doc_meta_data_odf_subtree),
(gsf_opendoc_metadata_subtree), (gsf_doc_meta_data_read_from_odf),
(gsf_opendoc_metadata_read), (gsf_doc_meta_data_write_to_odf),
(gsf_opendoc_metadata_write): ditto.
* gsf/gsf-opendoc-utils.h: ditto.