-
Notifications
You must be signed in to change notification settings - Fork 72
/
ChangeLog
5464 lines (4162 loc) · 183 KB
/
ChangeLog
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
2024-12-31: David Anderson
commit 7070a9115aa9ea8d83df5aba6c00c1c8e958d4a0
Removing trailing whitespace.
Eliminating too-long lines.
Fixing indents.
All per project CODINGSTYLE.md
modified: src/bin/dwarfdump/dd_checkutil.c
modified: src/bin/dwarfdump/dd_command_options.c
modified: src/bin/dwarfdump/dd_glflags.h
modified: src/bin/dwarfdump/dd_mac_cputype.h
modified: src/bin/dwarfdump/dd_trace_abstract_origin_etc.c
modified: src/bin/dwarfdump/dd_utf8.c
modified: src/bin/dwarfdump/dwarfdump.c
modified: src/bin/dwarfdump/print_die.c
2024-12-31: David Anderson
commit c57a2c652b25e5b03652b0e27c26a8c7c0334c30
Removing trailing whitespace.
Eliminating too-long lines.
Fixing indents.
All per project CODINGSTYLE.md
modified: src/lib/libdwarf/dwarf_abbrev.c
modified: src/lib/libdwarf/dwarf_errmsg_list.h
modified: src/lib/libdwarf/dwarf_local_malloc.h
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_machoread.c
modified: src/lib/libdwarf/dwarf_rnglists.c
modified: src/lib/libdwarf/libdwarf.h
2024-12-31: David Anderson
commit 719797fd417a339d168340682aa94368aa13c3aa
Added a fail-safe check on abbreviation count
for a single DIE.
Because a single DIE cannot sensibly have
more attributes in an
abbreviation than the number of standard DWARF
attributes plus with all known-extensions.
This new check applies whether the library
is generating an arror on duplicates or not.
modified: src/lib/libdwarf/dwarf_abbrev.c
2024-12-29: David Anderson
commit 06b7a017c6c6e66deb0ce255b753cd96d9235128
Adding --no-dup-attr-check to the man page, with
explantion of its use.
modified: doc/dwarfdump.1
Documenting new API function dwarf_library_allow_dup_attr()
which lets multiples of any attribute to be accepted
as if nothing is wrong.
This enables previous libdwarf/dwarfdump behavior
if object files you open have broken DWARF.
modified: doc/libdwarf.dox
Using the updated name dwarf_library_allow_dup_attr()
modified: src/bin/dwarfdump/dwarfdump.c
Defining dwarf_library_allow_dup_attr() and
using changed static (file-internal) names
relevant to the duplicated attribute issue.
modified: src/lib/libdwarf/dwarf_abbrev.c
Declares new API function dwarf_library_allow_dup_attr()
which lets multiples of any attribute to be accepted
as if nothing is wrong.
This enables previous libdwarf/dwarfdump behavior
if object files you open have broken DWARF.
modified: src/lib/libdwarf/libdwarf.h
2024-12-29: David Anderson
commit 44a38c0fcaefd3a1811bbca49b81a9b911917b77
Regenerated.
modified: dwarfbug.html
modified: dwarfbug.xml
modified: dwarfbuglohi.html
2024-12-29: David Anderson
commit 7028c4a50377160e25ee161c45111bb6cf230c9b
Writing up oss fuzz issues
DW202412-010
DW202412-011
modified: data.txt
2024-12-28: David Anderson
commit 738f0e169ce0ae00d72c41a78f66b68c9d05b545
Now up to date
modified: ChangeLog
2024-12-28: David Anderson
commit 344621bd20d4529cfb10b09dce81f6c1ebe326d3
Related to DW202412-011, a fuzzed object with
bogus attributes listed in an abbreviation list.
ossfuzz has not assigned an ossfuzz id for this.
New dwarfdump option so dwarfdump can request that
libdwarf not notice duplicated attributes in an abbreviation
list. (--no-dup-attr-check).
modified: src/bin/dwarfdump/dd_command_options.c
Added a comment about duplicated_attributes
modified: src/bin/dwarfdump/dd_compiler_info.c
Added flag glflags.gf_check_duplicated_attributes
modified: src/bin/dwarfdump/dd_glflags.c
modified: src/bin/dwarfdump/dd_glflags.h
The reference target finder now reports in useful detail
when dd_trace_abstract_origin_etc() finds an error
reading abbreviations.
Ensures that DW_DLE_ABBREV_ATTR_DUPLICATION gets
reported if it happens in a reference.
modified: src/bin/dwarfdump/dd_trace_abstract_origin_etc.c
Now looks at glflags.gf_no_check_duplicated_attributes
and calls dwarf_set_no_attr_dup_check(TRUE) when
appropriate.
modified: src/bin/dwarfdump/dwarfdump.c
In preparing a error message about duplicate attribute
we get the attribut name (DW_AT_linkage_name, for example)
so the error message printed is nore meaningful.
Mainly just moving one block of code up, before the other.
modified: src/bin/dwarfdump/print_die.c
2024-12-28: David Anderson
commit 2161332885c50074f15c0e1a7339c330cbf88c62
Added code to _dwarf_count_abbrev_entries() to note
duplicat attribute entries for an abbrev code.
And added new code to check for duplicated attributes
and issue an error.
But not if dwarf_set_no_attr_dup_check()
was called and turned off the checkint.
modified: src/lib/libdwarf/dwarf_abbrev.c
2024-12-28: David Anderson
commit 4edca6bcd2100fa869583211211d2e9f39e890fa
modified: doc/dwarfdump.1
Added Changes for a new API function relevant to
--no-dup-attr-check in dwarfdump.
And dwarf_set_no_attr_dup_check() for libdwarf.
modified: doc/libdwarf.dox
Noting and Documenting the new API function.
modified: src/lib/libdwarf/libdwarf.h
2024-12-26: David Anderson
commit 375d102768ee1ff953f97a93345318db3f63ea3c
Fix for ossfuzz 385742125 DW202412-010.
A mistake made in 2021 resulted in adding
to an end-section pointer (in .debug_abbrev),
and it was an error to do that.
The heavily fuzzed test object exposed the bug
so -fsanitize noticed.
modified: src/lib/libdwarf/dwarf_util.c
2024-12-25: David Anderson
commit 9cf5066516e5e46785bad045d97012e3c1c61b84
Now with a check of MachO segment size
to avoid impossibly large list of errors.
DW202412-009
Has been an issue in dwarf_machoread.c
since the code was written in 2021.
modified: bugxml/data.txt
modified: src/lib/libdwarf/dwarf_errmsg_list.h
modified: src/lib/libdwarf/dwarf_machoread.c
modified: src/lib/libdwarf/libdwarf.h
2024-12-23: David Anderson
commit 82852dc87a186685afba1b21c9cca66b8c89fad1
Regenerated.
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2024-12-23: David Anderson
commit 41e73a0b0b6b093c32bec031396fa1391c276aaf
Removing unwanted #if 0 code
and ensuring all to be kept for future
debugging is described on the #if 0 line.
modified: src/bin/dwarfdump/dd_attr_form.c
modified: src/bin/dwarfdump/dd_macrocheck.c
modified: src/bin/dwarfdump/dd_regex.c
modified: src/bin/dwarfdump/dd_utf8.c
modified: src/bin/dwarfdump/print_debug_names.c
modified: src/bin/dwarfdump/print_frames.c
modified: src/bin/dwarfdump/print_hipc_lopc_attr.c
modified: src/bin/dwarfdump/print_lines.c
modified: src/bin/dwarfdump/print_loclists.c
modified: src/bin/dwarfdump/print_macro.c
modified: src/bin/dwarfdump/print_pubnames.c
modified: src/bin/dwarfdump/print_section_groups.c
modified: src/lib/libdwarf/dwarf_local_malloc.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-12-23: David Anderson
commit 4172ddf000c88435658059ac3cbde792ce03ca14
Documenting DW202412-008 oss fuzz 385466100
modified: bugxml/data.txt
2024-12-23: David Anderson
commit 4e6e7cafa6bef0629e5ea2bbf63a4e2f84c5a938
Crash reading badly damaged object file (fuzzed).
Fixing ossfuzz issue 385466100 DW202412-008.
The bug was present since the code in
static function load_xu_loclists_into_cucontext()
was written around 2021.
The code simply assumed a section was loaded when
such was not guaranteed in a
carefully damaged object file.
modified: src/lib/libdwarf/dwarf_fission_to_cu.c
2024-12-23: David Anderson
commit 7cfe7d5864097dfcab90b046f3cca7000774419c
Removed unneeded if 0
Alterd PrintBucketGroup() to not have file
or line, that made regression testing a mess
if any trivial change made in source..
Instead have unique string in aech call.
modified: dd_checkutil.c
modified: dd_checkutil.h
modified: dd_trace_abstract_origin_etc.c
modified: dwarfdump.c
modified: print_die.c
2024-12-23: David Anderson
commit 7ad7b0a5408e7efb4ce74b69f63d508cbb792c0f
Now documents the one addition to the API:
dwarf_machine_architecture_a
modified: doc/libdwarf.dox
Major revision of the code generating a list of
valid address (in the object data) from Elf
header and section data. Such data used in
dwarfdump -k (checking) options.
Needed as there is now a rather wider range of
appearance of Elf section data (yet still valid Elf).
Leaving PE, Macho object reading unchanged at this time.
modified: src/bin/dwarfdump/dwarfdump.c
2024-12-23: David Anderson
commit 690bdca45573caf9c15ebd774a2bd01090374273
Now arranges that the ELF header e_type gets
reported back to the data visible to libdwarf
and thence to dwarfdump. Improved
error reporting by enabling access to what the object
file says are the addresses in the object.
modified: src/lib/libdwarf/dwarf_elf_load_headers.c
modified: src/lib/libdwarf/dwarf_elfread.c
modified: src/lib/libdwarf/dwarf_query.c
2024-12-23: David Anderson
commit 2df75f9a2908d0d4572fa4d305171aba001e5bbf
Now using gflags.nTrace for debut output selection
and the more useful interface to PrintBuchetGroup()
(relates to debugging output, not part of normal
reporting).
modified: src/bin/dwarfdump/dd_trace_abstract_origin_etc.c
2024-12-23: David Anderson
commit f4bbadbfaf3ab0e21e21a2152dce83eacd64ead4
Reflecting the altered interface to loc_error_check()
for better error reporting by dwarfdump.
modified: src/bin/dwarfdump/print_llex_codes.c
modified: src/bin/dwarfdump/print_loclists_codes.c
modified: src/bin/dwarfdump/print_origloclist_codes.c
2024-12-23: David Anderson
commit 9285a01b8b5d81e023f93aad6c8d3082cebab8ac
Now use glflags.nTrace for printing BucketGroup
Removed DW_AT_sibling DW_AT_type from traverse_attribute()
switch as the traversal checking logic cannot handle those
semsibly (lots of bogus checking errors result, all with -k).
modified: src/bin/dwarfdump/print_die.c
2024-12-23: David Anderson
commit b2b1bab0915f8a4c9c531d86f66b654b343c411d
We no longer try to access .debug_cu_index to try
to get a base address as that is not intended
to be relevant for a base address.
It does no good at all.
Left it there surrounded by #if 0 #endif
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-12-23: David Anderson
commit 34536748f3b7faf13f0a9142503547697c651ee7
Added new field de_obj_type in Dwarf_Debug_s to record
the ELF e_type field from an ELF header.
modified: src/lib/libdwarf/dwarf_opaque.h
2024-12-23: David Anderson
commit b131ffa1f7fb9aa5535d17e259c7776cd1a0f7f3
Added a new API function dwarf_machine_architecture_a()
with an additional argument to return ELF e_type field.
Useful to improve dwarfdump checking of target address fields.
The old way was no longer working well as compilers have
changed and some do not even generate a '.text' section but name
it 'text' instead. So an initialization algorythm in dwarfdump
had to change.
modified: src/lib/libdwarf/libdwarf.h
2024-12-23: David Anderson
commit b7249b90f609b28ee3b2b46cff40e77629bbb929
Removing a n odd macro which made understanding
some checking code more difficult.
And improved the -h output for --trace
modified: src/bin/dwarfdump/dd_command_options.c
modified: src/bin/dwarfdump/dd_glflags.h
Changed an internal interface argument list for checking-data
reports. .
modified: src/bin/dwarfdump/dd_globals.h
2024-12-23: David Anderson
commit 6097112ad36d2556dd48c194e7d8ebf2d6b14f66
Adding to the output of DWARF CHECK reported data
for precision.
modified: src/bin/dwarfdump/dd_checkutil.c
modified: src/bin/dwarfdump/dd_checkutil.h
2024-12-20: David Anderson
commit dbbcb39dabf751108acdcec59e7767f9c4e69d85
Expanding some comments.
modified: src/bin/dwarfdump/dwarfdump.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-12-18: David Anderson
commit 61a7465f865451270757ef74cc96b0781045485f
Now up to date.
modified: ChangeLog
2024-12-18: David Anderson
commit 733cbcd5f3c77ea52e90c53c1de83d90f74b423e
meson 1.3.2 was happy with a list of lists on compile_args,
but meson 0.61.2 from Ubuntu 20.04 was not (failed with
an error).
So we convert to simply a list itself. so it works
for a range of versions.
See the compiler_flags_public definition (not shown)
as it is itself a list.
@@ -142,7 +142,7 @@ libdwarf_lib = library('dwarf', libdwarf_src,
libdwarf = declare_dependency(
include_directories : [ include_directories('.')],
link_with : libdwarf_lib,
- compile_args : [compiler_flags_public],
+ compile_args : compiler_flags_public,
dependencies : [zlib_deps, libzstd_deps]
)
modified: src/lib/libdwarf/meson.build
@@ -52,7 +52,7 @@ libdwarfp_lib = library('dwarfp', libdwarfp_src,
libdwarfp = declare_dependency(
include_directories : [ include_directories('.')],
- compile_args : [compiler_flags_public],
+ compile_args : compiler_flags_public,
link_with : libdwarfp_lib,
)
modified: src/lib/libdwarfp/meson.build
2024-12-13: David Anderson
commit 3ea552f49f7e38ed3dfaff82cebfef62a8f47586
Merge: e6a83e1d f9bf1af0
Merge branch 'na-trium-144-fix-meson-static'
Fixing an issue with meson subproject build.
2024-12-13: David Anderson
commit f9bf1af00a6ce08268786be8a2d777b864f5ff39
Merge: e6a83e1d 5c8aee09
Merge branch 'fix-meson-static' of https://github.com/na-trium-144/libdwarf-code into na-trium-144-fix-meson-static
Fixing meson build when subproject
2024-12-13: David Anderson
commit e6a83e1df36bf7cb925794d3f1fc2f473bf73f9e
Regenerated
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2024-12-13: na-trium-144
commit 5c8aee090e2b5490da75180b3013670e052f869e
Add LIBDWARF_STATIC macro to static libdwarf dependency on meson
2024-12-11: David Anderson
commit 30c473b2c640faadccb1b687b79292dc08ffb380
Now up to date
modified: ChangeLog
2024-12-11: David Anderson
commit 2e4ab9a18913a293ff5586c675e2a9acdc0649ab
Removing #if 0 debug code.
modified: src/lib/libdwarf/dwarf_debugnames.c
Fixing indents.
modified: src/lib/libdwarf/dwarf_local_malloc.c
Removing trailing whitespace.
modified: src/lib/libdwarf/libdwarf.h
2024-12-11: David Anderson
commit 93c91b87799b4787ed1bb8970ebcaa2713ac35dd
Completing the documentation of DW202412-007 oss fuzz id: 42536144
modified: bugxml/data.txt
2024-12-11: David Anderson
commit a0d983611468e3882c9fee92197d321ae4580c1a
Fixing oss fuzz id: 42536144 DW202412-007
Out of Memory because a value read from the (fuzzed)
object was not checked for sanity.
This was a bug for a few years.
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_locationop_read.c
2024-12-11: David Anderson
commit 046962a2cc2a6de3f46f5910ceb29d0343ca5892
Working toward a feature allowing LOCAL_MALLOC
to be honored in building libdwarf for
regressiontests.
modified: meson.build
modified: meson_options.txt
modified: src/lib/libdwarf/meson.build
2024-12-10: David Anderson
commit 97b8a331331d3d6772834d0cf5faf217b117b108
Now up to date with git log
modified: ChangeLog
Regenerated
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2024-12-10: David Anderson
commit e1fae45ada13fa407cad99b5176d4720b55ea96f
Finishing up recent fix list.
modified: bugxml/data.txt
2024-12-10: David Anderson
commit 43be4567488c8b531d1ae98fe128f5eda374098e
This fixes honggfuzz id 383170474
and assigned DW202412-006 in dwarfbug.html
It was a mistake in internal calculations
of limits reading DWARF5 .debug_names.
modified: src/lib/libdwarf/dwarf_debugnames.c
2024-12-10: David Anderson
commit 365189647067c0c4e1f85c05838d50fc8c8f1408
First use of this testcase today.
The testcase emitted one printf string
which had no ending newline.
That provoked a warning from diff
which looked ugly.
So I added a terminating newline to the one and only printf
in the code.
modified: fuzz/fuzz_aranges.c
2024-12-10: David Anderson
commit 025f5f3497325b72006705990abe53fa95e80944
Documenting DW202412-003
modified: bugxml/data.txt
2024-12-10: David Anderson
commit 17a288f237fb96e1ccddd1b2d83c0c266db425cf
Up to date with git log
modified: ChangeLog
2024-12-10: David Anderson
commit 7fb14fea73b899cf5ceb04749a9ebdd8a199ca31
An aid to certain debugging tasks.
Now include dwarf_local_malloc.h everywhere so
when it's useful all the usual (malloc calloc
realloc free) are defined to call into
dwarf_local_malloc.h and tracked there to
help debug failures to use a sensible size malloc (etc).
When LIBDWARF_MALLOC is set by CPPFLAGS for
a special build this is effective and there are
printf's emitted from libdwarf.
No normal build sets that CPPFLAG value and
when not set the new functions in dwarf_local_malloc.?
are invisible to the libdwarf build.
modified: src/lib/libdwarf/dwarf_abbrev.c
modified: src/lib/libdwarf/dwarf_alloc.c
modified: src/lib/libdwarf/dwarf_arange.c
modified: src/lib/libdwarf/dwarf_crc.c
modified: src/lib/libdwarf/dwarf_crc32.c
modified: src/lib/libdwarf/dwarf_debug_sup.c
modified: src/lib/libdwarf/dwarf_debugaddr.c
modified: src/lib/libdwarf/dwarf_debuglink.c
modified: src/lib/libdwarf/dwarf_debugnames.c
modified: src/lib/libdwarf/dwarf_die_deliv.c
modified: src/lib/libdwarf/dwarf_dsc.c
modified: src/lib/libdwarf/dwarf_elf_load_headers.c
modified: src/lib/libdwarf/dwarf_elfread.c
modified: src/lib/libdwarf/dwarf_error.c
modified: src/lib/libdwarf/dwarf_fill_in_attr_form.c
modified: src/lib/libdwarf/dwarf_find_sigref.c
modified: src/lib/libdwarf/dwarf_fission_to_cu.c
modified: src/lib/libdwarf/dwarf_form.c
modified: src/lib/libdwarf/dwarf_frame.c
modified: src/lib/libdwarf/dwarf_frame2.c
modified: src/lib/libdwarf/dwarf_gdbindex.c
modified: src/lib/libdwarf/dwarf_generic_init.c
modified: src/lib/libdwarf/dwarf_global.c
modified: src/lib/libdwarf/dwarf_gnu_index.c
modified: src/lib/libdwarf/dwarf_groups.c
modified: src/lib/libdwarf/dwarf_harmless.c
modified: src/lib/libdwarf/dwarf_init_finish.c
modified: src/lib/libdwarf/dwarf_leb.c
modified: src/lib/libdwarf/dwarf_line.c
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_local_malloc.c
modified: src/lib/libdwarf/dwarf_locationop_read.c
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_machoread.c
modified: src/lib/libdwarf/dwarf_macro.c
modified: src/lib/libdwarf/dwarf_macro5.c
modified: src/lib/libdwarf/dwarf_names.c
modified: src/lib/libdwarf/dwarf_object_detector.c
modified: src/lib/libdwarf/dwarf_object_read_common.c
modified: src/lib/libdwarf/dwarf_print_lines.c
modified: src/lib/libdwarf/dwarf_query.c
modified: src/lib/libdwarf/dwarf_ranges.c
modified: src/lib/libdwarf/dwarf_rnglists.c
modified: src/lib/libdwarf/dwarf_safe_arithmetic.c
modified: src/lib/libdwarf/dwarf_secname_ck.c
modified: src/lib/libdwarf/dwarf_seekr.c
modified: src/lib/libdwarf/dwarf_setup_sections.c
modified: src/lib/libdwarf/dwarf_str_offsets.c
modified: src/lib/libdwarf/dwarf_string.c
modified: src/lib/libdwarf/dwarf_stringsection.c
modified: src/lib/libdwarf/dwarf_tied.c
modified: src/lib/libdwarf/dwarf_tsearchhash.c
modified: src/lib/libdwarf/dwarf_util.c
modified: src/lib/libdwarf/dwarf_xu_index.c
modified: src/lib/libdwarf/libdwarf_private.h
2024-12-10: David Anderson
commit b56de352fb19c6bba43aa63318c07f997a5b2878
Regenerated with latest
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2024-12-09: David Anderson
commit 2c60930e4a462435a2b9ada2644b33bc4d22bc89
These do not belong in code, but in regressiontests.
deleted: ossfuzz371659894/README
deleted: ossfuzz371659894/fuzz_die_cu_attrs-6661686947282944
2024-12-09: David Anderson
commit 801816e6d1b14789fd3c9d3d5dce32e0431f7173
New testcase
new file: ossfuzz371659894/README
new file: ossfuzz371659894/fuzz_die_cu_attrs-6661686947282944
2024-12-09: David Anderson
commit 3d916a603ce8bdc7428793387fdd87fd3b554876
New bug entries.
modified: bugxml/data.txt
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2024-12-09: David Anderson
commit 07478fc8c7c7335b1bad3d233a2f0c8914765052
These enable libdwarf to track all allocations
if a certain CPPFLAGS value passed in to the build
at build time.
Has no effect otherwise.
modified: src/lib/libdwarf/CMakeLists.txt
modified: src/lib/libdwarf/Makefile.am
modified: src/lib/libdwarf/meson.build
2024-12-09: David Anderson
commit 03a47bfc6fb53e69d75616a4bc6e10779cb451a9
Version now 0.11.2
modified: src/bin/dwarfdump/dwarfdump-af-table-ext.h
modified: src/bin/dwarfdump/dwarfdump-af-table-std.h
modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h
modified: src/bin/dwarfdump/dwarfdump-ta-table.h
modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h
modified: src/bin/dwarfdump/dwarfdump-tt-table.h
2024-12-09: David Anderson
commit e69eb5da569ce8d3a76ac1aa2f1ae9d371729dbf
The test code fuzz/fuzz_die_cu_attrs.c fails to test library
return codes in a loop and runs an unreasonably long time.
It's not an infinite loop, but memory is accumulating
pretty fast.
Results in megabytes of useless error messages from libdwarf.
I have changed the test source to check for a null 'attr'
and stop the loop right away. With a short message.
This is DW2024-002 oss fuzz id 371659894
modified: fuzz/fuzz_die_cu_attrs.c
2024-12-09: David Anderson
commit e9340b7fb01f9ee479a1a26cc10895d4eb305cc6
Used for checking/debugging alloc sizes and counts.
Normally not applicable. Requires special build
for these to be applicable.
new file: src/lib/libdwarf/dwarf_local_malloc.c
new file: src/lib/libdwarf/dwarf_local_malloc.h
This fixes ossfuzz371721677 DW202412-001
and ossfuzz372754161 DW202412-003
A field in a PE object file with the size to be malloc'd
was not checked for sanity before trying
to load the section into memory. So the fuzzed test case
resulted in a 1.7GB malloc.
Now we reject as a error.
modified: src/lib/libdwarf/dwarf_peread.c
2024-12-07: David Anderson
commit e6f5df8f10768c61ebffda1e6df8058c8c06fa0a
This is the true fix of oss-fuzz 42521589.
Originally oss-fuzz gave this id 56458.
DW202303-020
modified: bugxml/data.txt
2024-12-07: David Anderson
commit 9f11f8351c85f7715144943f72cd72f011616fe8
This is the true fix of oss-fuzz 42521589.
Originally oss-fuzz give this id 56458.
Called DW202303-020 in the project buglist.
In testing we ran the wrong test earlier resulting
in a false PASS.
This changes one line of code that has been wrong
since writtin in 2021.
modified: src/lib/libdwarf/dwarf_debugnames.c
2024-12-07: David Anderson
commit 3db277edfcd5012570a32ecbbf7f86eb74ae53e9
On receiving a DW_DLV_ERROR from dwarf_fission* printing calls
we omitted a DROP_ERROR_INSTANCE following each
print_error_and_continue.
Hence error records were leaking.
modified: src/bin/dwarfdump/dwarfdump.c
2024-12-05: David Anderson
commit 0d976e2ec104a5d938450ed61f0ac4659107b0f1
Now with DW202409-001 oss fuzz 42538203 fixes.
modified: ChangeLog
2024-12-05: David Anderson
commit 1aeca15e1c8ab3032ed298c46fe57126fb6bb103
Updating version to 0.11.2 for today's commits.
modified: CMakeLists.txt
modified: configure.ac
modified: doc/libdwarfp.mm
modified: meson.build
modified: src/lib/libdwarf/libdwarf.h
modified: tools/makerelease.sh
2024-12-05: David Anderson
commit cb0e3bde2eaa1c3edb3b810e7ecca7f23316ff59
Regenerated with DW202409-001 oss fuzz 42538203 data.
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbug.xml
modified: bugxml/dwarfbuglohi.html
2024-12-05: David Anderson
commit 504ff2ae1a85ccc8e71c2dae6e1f40993467b9fa
Fixing DW202409-001 oss fuzz 42538203
This bug has been present since the source file was
crated in 2021.
There were several fields in the object file
being read in the .debug_cu_index
and .debug_tu_index sections that
were never checked for sanity or correctness.
Now they are checked.
modified: src/lib/libdwarf/dwarf_xu_index.c
2024-12-05: David Anderson
commit a4aeb85754742a8d1c2f4dba31a13fc4c60ee1a9
Documenting DW202409-001 oss fuzz 42538203
modified: bugxml/data.txt
Updating date/version Dec 9, 0.11.2
modified: doc/libdwarf.dox
Adding detail to the doxygen for
dwarf_get_xu_section_offset().
modified: src/lib/libdwarf/libdwarf.h
2024-12-02: David Anderson
commit 909af3e46b68335df6c4a901ddd256ffa0d193d2
One line changes each month. Now December
modified: bugxml/dwarfbug.html
modified: bugxml/dwarfbuglohi.html
2024-11-30: David Anderson
commit 46f94a7fb291e5eeb9f9ba60c8b75ab00e45cfd6
Fix trailing white space and indents per
CODINGSTYLE.md.
modified: src/bin/dwarfdump/dwarfdump.c
modified: src/bin/dwarfdump/print_rnglists.c
2024-11-29: David Anderson
commit f1a608dabe832c298a062c066d9f4fb7f8012c44
Up to date now, for release.
modified: ChangeLog
2024-11-29: David Anderson
commit 0f640f587a66277961bda4aabb44d6637a406f5d
Added release of 1 Dec 2024
modified: README.md
2024-11-28: David Anderson
commit 046aca5f5a5f1fa161752cbc3f87ca0de702bb02
Fixed an indent.
modified: dwarf_errmsg_list.h
Removde trailing whitespace.
modified: dwarf_opaque.h
2024-11-28: David Anderson
commit 3b2303c76806958cd8e8430b8db1dc034da8d55d
Coverity scan noted two blocks of
structurally dead code in two pretty much
identical cases.
_dwarf_which_loclists_context
_dwarf_which_rnglists_context
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
Renoved the dead code and realigned the lines
to avoid useless indentation.
2024-11-28: David Anderson
commit fc51f91e8a28a1f0d2625f8e962f1c2c176daf29
Fixing too-long lines and indent mistakes and
trailing whitespace.
modified: src/lib/libdwarf/dwarf_fission_to_cu.c
modified: src/lib/libdwarf/dwarf_loc.c
Also removed #if 0 dead code.
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-11-28: David Anderson
commit 716db1eee00862c53e6185c8776cbcf6cf55410c
New internal function _dwarf_has_SECT_fission
to unify access .debug_cu/tu_* sections for .debug_rnglilsts
and .debug_loclists.
modified: src/lib/libdwarf/dwarf_fission_to_cu.c
Added prototype for the function.
modified: src/lib/libdwarf/dwarf_opaque.h
Corrected an error report string to ensure it is not identical
to another report here.
modified: src/lib/libdwarf/dwarf_form.c
Significan correction for DWARF5 loclists
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_loclists.c
Slight modification of library internal function
prototype.
modified: src/lib/libdwarf/dwarf_loc.h
Significan correction for DWARF5 rnglists
Now rnglists and loclists handling is as similar
as possible (or close to it).
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-11-22: David Anderson
commit b27b8cbc675db87b4810846c3fdb8e1ffaf3c6e1
Made the fix for github issue 270
about .debug_rnglists in DWARF5.
modified: dwarf_rnglists.c
2024-11-22: David Anderson
commit 46c4ebea1a8a66d8a3baddb9cdf3947c214ad4e5
Corrected trailing whitespace and indents.
modified: dwarf_query.c
2024-11-22: David Anderson
commit 48f0da072578076b9f25472cca79609efaa9631a
Corrected indent mistakes.
modified: dwarf_util.c
2024-11-22: David Anderson
commit 324bdd94517465e7d85fdcd1307db2a0e0a7c5ec
Correcting trailing whitespace.
modified: dwarf_generic_init.c
2024-11-22: David Anderson
commit 78ef7b939eb1bf241e29c918f45a4b4c31ea1469
Fixing trailing whitespace.
modified: dwarf_init_finish.c
2024-11-22: David Anderson
commit dd1ed5fd203856cf21555484b74a7714506a3519
Correcting indents, trailing whitespace and a too-long line.
modified: dwarf_die_deliv.c
2024-11-22: David Anderson
commit 3be32bb07bbef37e656d3f485d90d45f529a4521
Corrected an indent mistake.
modified: dwarf_peread.c
2024-11-22: David Anderson
commit 87d534479414c2a43d96fccf60e3203e3172e269
Adjusting line length to match CODINGSTYLE
modified: dwarf_loclists.c
2024-11-21: Jeremy Rifkin
commit 9a9d1725889f679ca3f0f67a0caadffd5b90e271
Add an export set (#268)
2024-11-19: David Anderson
commit e88395d8f86770dc6a5ec66fedec62438634ab1e
Adding __debug_names to .debug_names
though it is unclear of Apple generates that section.
modified: src/lib/libdwarf/dwarf_machoread.c
2024-11-19: David Anderson
commit a7a83e3ef56e68ef2db8699b0fc25cba8740fa92
DWARF5 MacOS objects have new sections.
Adding the name translations so they are seen.
+ { "__debug_addr", ".debug_addr" },
+ { "__debug_rnglists", ".debug_rnglists" },
+ { "__debug_loclists", ".debug_loclists" },
+ { "__debug_str_offs", ".debug_str_offsets" },
+ { "__debug_line_str", ".debug_line_str" },
modified: src/lib/libdwarf/dwarf_machoread.c
2024-11-16: David Anderson
commit de25355d90730eae2e56ecd7aeaa49de87a81480
Now with all the rnglists fixes in place.
modified: ChangeLog
2024-11-29: David Anderson
commit 0f640f587a66277961bda4aabb44d6637a406f5d
Added release of 1 Dec 2024
modified: README.md
2024-11-28: David Anderson
commit 046aca5f5a5f1fa161752cbc3f87ca0de702bb02
Fixed an indent.
modified: dwarf_errmsg_list.h
Removde trailing whitespace.
modified: dwarf_opaque.h
2024-11-28: David Anderson
commit 3b2303c76806958cd8e8430b8db1dc034da8d55d
Coverity scan noted two blocks of
structurally dead code in two pretty much
identical cases.
_dwarf_which_loclists_context
_dwarf_which_rnglists_context
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
Renoved the dead code and realigned the lines
to avoid useless indentation.
2024-11-28: David Anderson
commit fc51f91e8a28a1f0d2625f8e962f1c2c176daf29
Fixing too-long lines and indent mistakes and
trailing whitespace.
modified: src/lib/libdwarf/dwarf_fission_to_cu.c
modified: src/lib/libdwarf/dwarf_loc.c
Also removed #if 0 dead code.
modified: src/lib/libdwarf/dwarf_loclists.c
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-11-28: David Anderson
commit 716db1eee00862c53e6185c8776cbcf6cf55410c
New internal function _dwarf_has_SECT_fission
to unify access .debug_cu/tu_* sections for .debug_rnglilsts
and .debug_loclists.
modified: src/lib/libdwarf/dwarf_fission_to_cu.c
Added prototype for the function.
modified: src/lib/libdwarf/dwarf_opaque.h
Corrected an error report string to ensure it is not identical
to another report here.
modified: src/lib/libdwarf/dwarf_form.c
Significan correction for DWARF5 loclists
modified: src/lib/libdwarf/dwarf_loc.c
modified: src/lib/libdwarf/dwarf_loclists.c
Slight modification of library internal function
prototype.
modified: src/lib/libdwarf/dwarf_loc.h
Significan correction for DWARF5 rnglists
Now rnglists and loclists handling is as similar
as possible (or close to it).
modified: src/lib/libdwarf/dwarf_rnglists.c
2024-11-22: David Anderson
commit b27b8cbc675db87b4810846c3fdb8e1ffaf3c6e1
Made the fix for github issue 270
about .debug_rnglists in DWARF5.
modified: dwarf_rnglists.c
2024-11-22: David Anderson
commit 46c4ebea1a8a66d8a3baddb9cdf3947c214ad4e5
Corrected trailing whitespace and indents.
modified: dwarf_query.c
2024-11-22: David Anderson
commit 48f0da072578076b9f25472cca79609efaa9631a
Corrected indent mistakes.
modified: dwarf_util.c