Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- local-test-libexif-delta-01-exif-004/afc-libexif/AUTHORS +6 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/COPYING +504 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/ChangeLog +2103 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/Makefile.am +46 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/NEWS +216 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/README +163 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/README-Win32.txt +30 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/SECURITY.md +43 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/configure.ac +266 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/libexif-uninstalled.pc.in +5 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/libexif.pc.in +12 -0
- local-test-libexif-delta-01-exif-004/afc-libexif/libexif.spec.in +54 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/CITATION.cff +46 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/CONTRIBUTING.md +26 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/LICENSE +201 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/README.md +135 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/404.html +23 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/Gemfile +4 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/README.md +19 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/_config.yml +40 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/faq.md +237 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/favicon.ico +0 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/ideal_integration.md +1 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/index.md +88 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/new_project_guide.md +1 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/reproducing.md +1 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/MAINTAINERS.csv +7 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/__pycache__/constants.cpython-312.pyc +0 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/__pycache__/templates.cpython-312.pyc +0 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/README.md +6 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/aixcc_build_all.sh +59 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/all.sh +28 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/Dockerfile +26 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_build +28 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_install_dependencies +22 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_measure +32 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_run_fuzzer +41 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-go/Dockerfile +33 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-go/gosigfuzz.c +47 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-go/ossfuzz_coverage_runner.go +80 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-python/Dockerfile +20 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-swift/Dockerfile +22 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-swift/precompile_swift +33 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder/compile_fuzztests.sh +126 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder/install_go.sh +43 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder/write_labels.py +40 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-image/Dockerfile +46 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-runner-debug/Dockerfile +26 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-runner/bad_build_check +494 -0
- local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-runner/coverage +549 -0
local-test-libexif-delta-01-exif-004/afc-libexif/AUTHORS
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Lutz Mueller <urc8@rz.uni-karlsruhe.de>
|
| 2 |
+
Jan Patera <patera@users.sourceforge.net>
|
| 3 |
+
Hans Ulrich Niedermann <gp@n-dimensional.de>
|
| 4 |
+
Hubert Figuiere <hub@figuiere.net>
|
| 5 |
+
Dan Fandrich <dan@coneharvesters.com>
|
| 6 |
+
Marcus Meissner <marcus@jet.franken.de>
|
local-test-libexif-delta-01-exif-004/afc-libexif/COPYING
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU LESSER GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 2.1, February 1999
|
| 3 |
+
|
| 4 |
+
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
| 5 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
| 6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 7 |
+
of this license document, but changing it is not allowed.
|
| 8 |
+
|
| 9 |
+
[This is the first released version of the Lesser GPL. It also counts
|
| 10 |
+
as the successor of the GNU Library Public License, version 2, hence
|
| 11 |
+
the version number 2.1.]
|
| 12 |
+
|
| 13 |
+
Preamble
|
| 14 |
+
|
| 15 |
+
The licenses for most software are designed to take away your
|
| 16 |
+
freedom to share and change it. By contrast, the GNU General Public
|
| 17 |
+
Licenses are intended to guarantee your freedom to share and change
|
| 18 |
+
free software--to make sure the software is free for all its users.
|
| 19 |
+
|
| 20 |
+
This license, the Lesser General Public License, applies to some
|
| 21 |
+
specially designated software packages--typically libraries--of the
|
| 22 |
+
Free Software Foundation and other authors who decide to use it. You
|
| 23 |
+
can use it too, but we suggest you first think carefully about whether
|
| 24 |
+
this license or the ordinary General Public License is the better
|
| 25 |
+
strategy to use in any particular case, based on the explanations below.
|
| 26 |
+
|
| 27 |
+
When we speak of free software, we are referring to freedom of use,
|
| 28 |
+
not price. Our General Public Licenses are designed to make sure that
|
| 29 |
+
you have the freedom to distribute copies of free software (and charge
|
| 30 |
+
for this service if you wish); that you receive source code or can get
|
| 31 |
+
it if you want it; that you can change the software and use pieces of
|
| 32 |
+
it in new free programs; and that you are informed that you can do
|
| 33 |
+
these things.
|
| 34 |
+
|
| 35 |
+
To protect your rights, we need to make restrictions that forbid
|
| 36 |
+
distributors to deny you these rights or to ask you to surrender these
|
| 37 |
+
rights. These restrictions translate to certain responsibilities for
|
| 38 |
+
you if you distribute copies of the library or if you modify it.
|
| 39 |
+
|
| 40 |
+
For example, if you distribute copies of the library, whether gratis
|
| 41 |
+
or for a fee, you must give the recipients all the rights that we gave
|
| 42 |
+
you. You must make sure that they, too, receive or can get the source
|
| 43 |
+
code. If you link other code with the library, you must provide
|
| 44 |
+
complete object files to the recipients, so that they can relink them
|
| 45 |
+
with the library after making changes to the library and recompiling
|
| 46 |
+
it. And you must show them these terms so they know their rights.
|
| 47 |
+
|
| 48 |
+
We protect your rights with a two-step method: (1) we copyright the
|
| 49 |
+
library, and (2) we offer you this license, which gives you legal
|
| 50 |
+
permission to copy, distribute and/or modify the library.
|
| 51 |
+
|
| 52 |
+
To protect each distributor, we want to make it very clear that
|
| 53 |
+
there is no warranty for the free library. Also, if the library is
|
| 54 |
+
modified by someone else and passed on, the recipients should know
|
| 55 |
+
that what they have is not the original version, so that the original
|
| 56 |
+
author's reputation will not be affected by problems that might be
|
| 57 |
+
introduced by others.
|
| 58 |
+
|
| 59 |
+
Finally, software patents pose a constant threat to the existence of
|
| 60 |
+
any free program. We wish to make sure that a company cannot
|
| 61 |
+
effectively restrict the users of a free program by obtaining a
|
| 62 |
+
restrictive license from a patent holder. Therefore, we insist that
|
| 63 |
+
any patent license obtained for a version of the library must be
|
| 64 |
+
consistent with the full freedom of use specified in this license.
|
| 65 |
+
|
| 66 |
+
Most GNU software, including some libraries, is covered by the
|
| 67 |
+
ordinary GNU General Public License. This license, the GNU Lesser
|
| 68 |
+
General Public License, applies to certain designated libraries, and
|
| 69 |
+
is quite different from the ordinary General Public License. We use
|
| 70 |
+
this license for certain libraries in order to permit linking those
|
| 71 |
+
libraries into non-free programs.
|
| 72 |
+
|
| 73 |
+
When a program is linked with a library, whether statically or using
|
| 74 |
+
a shared library, the combination of the two is legally speaking a
|
| 75 |
+
combined work, a derivative of the original library. The ordinary
|
| 76 |
+
General Public License therefore permits such linking only if the
|
| 77 |
+
entire combination fits its criteria of freedom. The Lesser General
|
| 78 |
+
Public License permits more lax criteria for linking other code with
|
| 79 |
+
the library.
|
| 80 |
+
|
| 81 |
+
We call this license the "Lesser" General Public License because it
|
| 82 |
+
does Less to protect the user's freedom than the ordinary General
|
| 83 |
+
Public License. It also provides other free software developers Less
|
| 84 |
+
of an advantage over competing non-free programs. These disadvantages
|
| 85 |
+
are the reason we use the ordinary General Public License for many
|
| 86 |
+
libraries. However, the Lesser license provides advantages in certain
|
| 87 |
+
special circumstances.
|
| 88 |
+
|
| 89 |
+
For example, on rare occasions, there may be a special need to
|
| 90 |
+
encourage the widest possible use of a certain library, so that it becomes
|
| 91 |
+
a de-facto standard. To achieve this, non-free programs must be
|
| 92 |
+
allowed to use the library. A more frequent case is that a free
|
| 93 |
+
library does the same job as widely used non-free libraries. In this
|
| 94 |
+
case, there is little to gain by limiting the free library to free
|
| 95 |
+
software only, so we use the Lesser General Public License.
|
| 96 |
+
|
| 97 |
+
In other cases, permission to use a particular library in non-free
|
| 98 |
+
programs enables a greater number of people to use a large body of
|
| 99 |
+
free software. For example, permission to use the GNU C Library in
|
| 100 |
+
non-free programs enables many more people to use the whole GNU
|
| 101 |
+
operating system, as well as its variant, the GNU/Linux operating
|
| 102 |
+
system.
|
| 103 |
+
|
| 104 |
+
Although the Lesser General Public License is Less protective of the
|
| 105 |
+
users' freedom, it does ensure that the user of a program that is
|
| 106 |
+
linked with the Library has the freedom and the wherewithal to run
|
| 107 |
+
that program using a modified version of the Library.
|
| 108 |
+
|
| 109 |
+
The precise terms and conditions for copying, distribution and
|
| 110 |
+
modification follow. Pay close attention to the difference between a
|
| 111 |
+
"work based on the library" and a "work that uses the library". The
|
| 112 |
+
former contains code derived from the library, whereas the latter must
|
| 113 |
+
be combined with the library in order to run.
|
| 114 |
+
|
| 115 |
+
GNU LESSER GENERAL PUBLIC LICENSE
|
| 116 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
| 117 |
+
|
| 118 |
+
0. This License Agreement applies to any software library or other
|
| 119 |
+
program which contains a notice placed by the copyright holder or
|
| 120 |
+
other authorized party saying it may be distributed under the terms of
|
| 121 |
+
this Lesser General Public License (also called "this License").
|
| 122 |
+
Each licensee is addressed as "you".
|
| 123 |
+
|
| 124 |
+
A "library" means a collection of software functions and/or data
|
| 125 |
+
prepared so as to be conveniently linked with application programs
|
| 126 |
+
(which use some of those functions and data) to form executables.
|
| 127 |
+
|
| 128 |
+
The "Library", below, refers to any such software library or work
|
| 129 |
+
which has been distributed under these terms. A "work based on the
|
| 130 |
+
Library" means either the Library or any derivative work under
|
| 131 |
+
copyright law: that is to say, a work containing the Library or a
|
| 132 |
+
portion of it, either verbatim or with modifications and/or translated
|
| 133 |
+
straightforwardly into another language. (Hereinafter, translation is
|
| 134 |
+
included without limitation in the term "modification".)
|
| 135 |
+
|
| 136 |
+
"Source code" for a work means the preferred form of the work for
|
| 137 |
+
making modifications to it. For a library, complete source code means
|
| 138 |
+
all the source code for all modules it contains, plus any associated
|
| 139 |
+
interface definition files, plus the scripts used to control compilation
|
| 140 |
+
and installation of the library.
|
| 141 |
+
|
| 142 |
+
Activities other than copying, distribution and modification are not
|
| 143 |
+
covered by this License; they are outside its scope. The act of
|
| 144 |
+
running a program using the Library is not restricted, and output from
|
| 145 |
+
such a program is covered only if its contents constitute a work based
|
| 146 |
+
on the Library (independent of the use of the Library in a tool for
|
| 147 |
+
writing it). Whether that is true depends on what the Library does
|
| 148 |
+
and what the program that uses the Library does.
|
| 149 |
+
|
| 150 |
+
1. You may copy and distribute verbatim copies of the Library's
|
| 151 |
+
complete source code as you receive it, in any medium, provided that
|
| 152 |
+
you conspicuously and appropriately publish on each copy an
|
| 153 |
+
appropriate copyright notice and disclaimer of warranty; keep intact
|
| 154 |
+
all the notices that refer to this License and to the absence of any
|
| 155 |
+
warranty; and distribute a copy of this License along with the
|
| 156 |
+
Library.
|
| 157 |
+
|
| 158 |
+
You may charge a fee for the physical act of transferring a copy,
|
| 159 |
+
and you may at your option offer warranty protection in exchange for a
|
| 160 |
+
fee.
|
| 161 |
+
|
| 162 |
+
2. You may modify your copy or copies of the Library or any portion
|
| 163 |
+
of it, thus forming a work based on the Library, and copy and
|
| 164 |
+
distribute such modifications or work under the terms of Section 1
|
| 165 |
+
above, provided that you also meet all of these conditions:
|
| 166 |
+
|
| 167 |
+
a) The modified work must itself be a software library.
|
| 168 |
+
|
| 169 |
+
b) You must cause the files modified to carry prominent notices
|
| 170 |
+
stating that you changed the files and the date of any change.
|
| 171 |
+
|
| 172 |
+
c) You must cause the whole of the work to be licensed at no
|
| 173 |
+
charge to all third parties under the terms of this License.
|
| 174 |
+
|
| 175 |
+
d) If a facility in the modified Library refers to a function or a
|
| 176 |
+
table of data to be supplied by an application program that uses
|
| 177 |
+
the facility, other than as an argument passed when the facility
|
| 178 |
+
is invoked, then you must make a good faith effort to ensure that,
|
| 179 |
+
in the event an application does not supply such function or
|
| 180 |
+
table, the facility still operates, and performs whatever part of
|
| 181 |
+
its purpose remains meaningful.
|
| 182 |
+
|
| 183 |
+
(For example, a function in a library to compute square roots has
|
| 184 |
+
a purpose that is entirely well-defined independent of the
|
| 185 |
+
application. Therefore, Subsection 2d requires that any
|
| 186 |
+
application-supplied function or table used by this function must
|
| 187 |
+
be optional: if the application does not supply it, the square
|
| 188 |
+
root function must still compute square roots.)
|
| 189 |
+
|
| 190 |
+
These requirements apply to the modified work as a whole. If
|
| 191 |
+
identifiable sections of that work are not derived from the Library,
|
| 192 |
+
and can be reasonably considered independent and separate works in
|
| 193 |
+
themselves, then this License, and its terms, do not apply to those
|
| 194 |
+
sections when you distribute them as separate works. But when you
|
| 195 |
+
distribute the same sections as part of a whole which is a work based
|
| 196 |
+
on the Library, the distribution of the whole must be on the terms of
|
| 197 |
+
this License, whose permissions for other licensees extend to the
|
| 198 |
+
entire whole, and thus to each and every part regardless of who wrote
|
| 199 |
+
it.
|
| 200 |
+
|
| 201 |
+
Thus, it is not the intent of this section to claim rights or contest
|
| 202 |
+
your rights to work written entirely by you; rather, the intent is to
|
| 203 |
+
exercise the right to control the distribution of derivative or
|
| 204 |
+
collective works based on the Library.
|
| 205 |
+
|
| 206 |
+
In addition, mere aggregation of another work not based on the Library
|
| 207 |
+
with the Library (or with a work based on the Library) on a volume of
|
| 208 |
+
a storage or distribution medium does not bring the other work under
|
| 209 |
+
the scope of this License.
|
| 210 |
+
|
| 211 |
+
3. You may opt to apply the terms of the ordinary GNU General Public
|
| 212 |
+
License instead of this License to a given copy of the Library. To do
|
| 213 |
+
this, you must alter all the notices that refer to this License, so
|
| 214 |
+
that they refer to the ordinary GNU General Public License, version 2,
|
| 215 |
+
instead of to this License. (If a newer version than version 2 of the
|
| 216 |
+
ordinary GNU General Public License has appeared, then you can specify
|
| 217 |
+
that version instead if you wish.) Do not make any other change in
|
| 218 |
+
these notices.
|
| 219 |
+
|
| 220 |
+
Once this change is made in a given copy, it is irreversible for
|
| 221 |
+
that copy, so the ordinary GNU General Public License applies to all
|
| 222 |
+
subsequent copies and derivative works made from that copy.
|
| 223 |
+
|
| 224 |
+
This option is useful when you wish to copy part of the code of
|
| 225 |
+
the Library into a program that is not a library.
|
| 226 |
+
|
| 227 |
+
4. You may copy and distribute the Library (or a portion or
|
| 228 |
+
derivative of it, under Section 2) in object code or executable form
|
| 229 |
+
under the terms of Sections 1 and 2 above provided that you accompany
|
| 230 |
+
it with the complete corresponding machine-readable source code, which
|
| 231 |
+
must be distributed under the terms of Sections 1 and 2 above on a
|
| 232 |
+
medium customarily used for software interchange.
|
| 233 |
+
|
| 234 |
+
If distribution of object code is made by offering access to copy
|
| 235 |
+
from a designated place, then offering equivalent access to copy the
|
| 236 |
+
source code from the same place satisfies the requirement to
|
| 237 |
+
distribute the source code, even though third parties are not
|
| 238 |
+
compelled to copy the source along with the object code.
|
| 239 |
+
|
| 240 |
+
5. A program that contains no derivative of any portion of the
|
| 241 |
+
Library, but is designed to work with the Library by being compiled or
|
| 242 |
+
linked with it, is called a "work that uses the Library". Such a
|
| 243 |
+
work, in isolation, is not a derivative work of the Library, and
|
| 244 |
+
therefore falls outside the scope of this License.
|
| 245 |
+
|
| 246 |
+
However, linking a "work that uses the Library" with the Library
|
| 247 |
+
creates an executable that is a derivative of the Library (because it
|
| 248 |
+
contains portions of the Library), rather than a "work that uses the
|
| 249 |
+
library". The executable is therefore covered by this License.
|
| 250 |
+
Section 6 states terms for distribution of such executables.
|
| 251 |
+
|
| 252 |
+
When a "work that uses the Library" uses material from a header file
|
| 253 |
+
that is part of the Library, the object code for the work may be a
|
| 254 |
+
derivative work of the Library even though the source code is not.
|
| 255 |
+
Whether this is true is especially significant if the work can be
|
| 256 |
+
linked without the Library, or if the work is itself a library. The
|
| 257 |
+
threshold for this to be true is not precisely defined by law.
|
| 258 |
+
|
| 259 |
+
If such an object file uses only numerical parameters, data
|
| 260 |
+
structure layouts and accessors, and small macros and small inline
|
| 261 |
+
functions (ten lines or less in length), then the use of the object
|
| 262 |
+
file is unrestricted, regardless of whether it is legally a derivative
|
| 263 |
+
work. (Executables containing this object code plus portions of the
|
| 264 |
+
Library will still fall under Section 6.)
|
| 265 |
+
|
| 266 |
+
Otherwise, if the work is a derivative of the Library, you may
|
| 267 |
+
distribute the object code for the work under the terms of Section 6.
|
| 268 |
+
Any executables containing that work also fall under Section 6,
|
| 269 |
+
whether or not they are linked directly with the Library itself.
|
| 270 |
+
|
| 271 |
+
6. As an exception to the Sections above, you may also combine or
|
| 272 |
+
link a "work that uses the Library" with the Library to produce a
|
| 273 |
+
work containing portions of the Library, and distribute that work
|
| 274 |
+
under terms of your choice, provided that the terms permit
|
| 275 |
+
modification of the work for the customer's own use and reverse
|
| 276 |
+
engineering for debugging such modifications.
|
| 277 |
+
|
| 278 |
+
You must give prominent notice with each copy of the work that the
|
| 279 |
+
Library is used in it and that the Library and its use are covered by
|
| 280 |
+
this License. You must supply a copy of this License. If the work
|
| 281 |
+
during execution displays copyright notices, you must include the
|
| 282 |
+
copyright notice for the Library among them, as well as a reference
|
| 283 |
+
directing the user to the copy of this License. Also, you must do one
|
| 284 |
+
of these things:
|
| 285 |
+
|
| 286 |
+
a) Accompany the work with the complete corresponding
|
| 287 |
+
machine-readable source code for the Library including whatever
|
| 288 |
+
changes were used in the work (which must be distributed under
|
| 289 |
+
Sections 1 and 2 above); and, if the work is an executable linked
|
| 290 |
+
with the Library, with the complete machine-readable "work that
|
| 291 |
+
uses the Library", as object code and/or source code, so that the
|
| 292 |
+
user can modify the Library and then relink to produce a modified
|
| 293 |
+
executable containing the modified Library. (It is understood
|
| 294 |
+
that the user who changes the contents of definitions files in the
|
| 295 |
+
Library will not necessarily be able to recompile the application
|
| 296 |
+
to use the modified definitions.)
|
| 297 |
+
|
| 298 |
+
b) Use a suitable shared library mechanism for linking with the
|
| 299 |
+
Library. A suitable mechanism is one that (1) uses at run time a
|
| 300 |
+
copy of the library already present on the user's computer system,
|
| 301 |
+
rather than copying library functions into the executable, and (2)
|
| 302 |
+
will operate properly with a modified version of the library, if
|
| 303 |
+
the user installs one, as long as the modified version is
|
| 304 |
+
interface-compatible with the version that the work was made with.
|
| 305 |
+
|
| 306 |
+
c) Accompany the work with a written offer, valid for at
|
| 307 |
+
least three years, to give the same user the materials
|
| 308 |
+
specified in Subsection 6a, above, for a charge no more
|
| 309 |
+
than the cost of performing this distribution.
|
| 310 |
+
|
| 311 |
+
d) If distribution of the work is made by offering access to copy
|
| 312 |
+
from a designated place, offer equivalent access to copy the above
|
| 313 |
+
specified materials from the same place.
|
| 314 |
+
|
| 315 |
+
e) Verify that the user has already received a copy of these
|
| 316 |
+
materials or that you have already sent this user a copy.
|
| 317 |
+
|
| 318 |
+
For an executable, the required form of the "work that uses the
|
| 319 |
+
Library" must include any data and utility programs needed for
|
| 320 |
+
reproducing the executable from it. However, as a special exception,
|
| 321 |
+
the materials to be distributed need not include anything that is
|
| 322 |
+
normally distributed (in either source or binary form) with the major
|
| 323 |
+
components (compiler, kernel, and so on) of the operating system on
|
| 324 |
+
which the executable runs, unless that component itself accompanies
|
| 325 |
+
the executable.
|
| 326 |
+
|
| 327 |
+
It may happen that this requirement contradicts the license
|
| 328 |
+
restrictions of other proprietary libraries that do not normally
|
| 329 |
+
accompany the operating system. Such a contradiction means you cannot
|
| 330 |
+
use both them and the Library together in an executable that you
|
| 331 |
+
distribute.
|
| 332 |
+
|
| 333 |
+
7. You may place library facilities that are a work based on the
|
| 334 |
+
Library side-by-side in a single library together with other library
|
| 335 |
+
facilities not covered by this License, and distribute such a combined
|
| 336 |
+
library, provided that the separate distribution of the work based on
|
| 337 |
+
the Library and of the other library facilities is otherwise
|
| 338 |
+
permitted, and provided that you do these two things:
|
| 339 |
+
|
| 340 |
+
a) Accompany the combined library with a copy of the same work
|
| 341 |
+
based on the Library, uncombined with any other library
|
| 342 |
+
facilities. This must be distributed under the terms of the
|
| 343 |
+
Sections above.
|
| 344 |
+
|
| 345 |
+
b) Give prominent notice with the combined library of the fact
|
| 346 |
+
that part of it is a work based on the Library, and explaining
|
| 347 |
+
where to find the accompanying uncombined form of the same work.
|
| 348 |
+
|
| 349 |
+
8. You may not copy, modify, sublicense, link with, or distribute
|
| 350 |
+
the Library except as expressly provided under this License. Any
|
| 351 |
+
attempt otherwise to copy, modify, sublicense, link with, or
|
| 352 |
+
distribute the Library is void, and will automatically terminate your
|
| 353 |
+
rights under this License. However, parties who have received copies,
|
| 354 |
+
or rights, from you under this License will not have their licenses
|
| 355 |
+
terminated so long as such parties remain in full compliance.
|
| 356 |
+
|
| 357 |
+
9. You are not required to accept this License, since you have not
|
| 358 |
+
signed it. However, nothing else grants you permission to modify or
|
| 359 |
+
distribute the Library or its derivative works. These actions are
|
| 360 |
+
prohibited by law if you do not accept this License. Therefore, by
|
| 361 |
+
modifying or distributing the Library (or any work based on the
|
| 362 |
+
Library), you indicate your acceptance of this License to do so, and
|
| 363 |
+
all its terms and conditions for copying, distributing or modifying
|
| 364 |
+
the Library or works based on it.
|
| 365 |
+
|
| 366 |
+
10. Each time you redistribute the Library (or any work based on the
|
| 367 |
+
Library), the recipient automatically receives a license from the
|
| 368 |
+
original licensor to copy, distribute, link with or modify the Library
|
| 369 |
+
subject to these terms and conditions. You may not impose any further
|
| 370 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
| 371 |
+
You are not responsible for enforcing compliance by third parties with
|
| 372 |
+
this License.
|
| 373 |
+
|
| 374 |
+
11. If, as a consequence of a court judgment or allegation of patent
|
| 375 |
+
infringement or for any other reason (not limited to patent issues),
|
| 376 |
+
conditions are imposed on you (whether by court order, agreement or
|
| 377 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 378 |
+
excuse you from the conditions of this License. If you cannot
|
| 379 |
+
distribute so as to satisfy simultaneously your obligations under this
|
| 380 |
+
License and any other pertinent obligations, then as a consequence you
|
| 381 |
+
may not distribute the Library at all. For example, if a patent
|
| 382 |
+
license would not permit royalty-free redistribution of the Library by
|
| 383 |
+
all those who receive copies directly or indirectly through you, then
|
| 384 |
+
the only way you could satisfy both it and this License would be to
|
| 385 |
+
refrain entirely from distribution of the Library.
|
| 386 |
+
|
| 387 |
+
If any portion of this section is held invalid or unenforceable under any
|
| 388 |
+
particular circumstance, the balance of the section is intended to apply,
|
| 389 |
+
and the section as a whole is intended to apply in other circumstances.
|
| 390 |
+
|
| 391 |
+
It is not the purpose of this section to induce you to infringe any
|
| 392 |
+
patents or other property right claims or to contest validity of any
|
| 393 |
+
such claims; this section has the sole purpose of protecting the
|
| 394 |
+
integrity of the free software distribution system which is
|
| 395 |
+
implemented by public license practices. Many people have made
|
| 396 |
+
generous contributions to the wide range of software distributed
|
| 397 |
+
through that system in reliance on consistent application of that
|
| 398 |
+
system; it is up to the author/donor to decide if he or she is willing
|
| 399 |
+
to distribute software through any other system and a licensee cannot
|
| 400 |
+
impose that choice.
|
| 401 |
+
|
| 402 |
+
This section is intended to make thoroughly clear what is believed to
|
| 403 |
+
be a consequence of the rest of this License.
|
| 404 |
+
|
| 405 |
+
12. If the distribution and/or use of the Library is restricted in
|
| 406 |
+
certain countries either by patents or by copyrighted interfaces, the
|
| 407 |
+
original copyright holder who places the Library under this License may add
|
| 408 |
+
an explicit geographical distribution limitation excluding those countries,
|
| 409 |
+
so that distribution is permitted only in or among countries not thus
|
| 410 |
+
excluded. In such case, this License incorporates the limitation as if
|
| 411 |
+
written in the body of this License.
|
| 412 |
+
|
| 413 |
+
13. The Free Software Foundation may publish revised and/or new
|
| 414 |
+
versions of the Lesser General Public License from time to time.
|
| 415 |
+
Such new versions will be similar in spirit to the present version,
|
| 416 |
+
but may differ in detail to address new problems or concerns.
|
| 417 |
+
|
| 418 |
+
Each version is given a distinguishing version number. If the Library
|
| 419 |
+
specifies a version number of this License which applies to it and
|
| 420 |
+
"any later version", you have the option of following the terms and
|
| 421 |
+
conditions either of that version or of any later version published by
|
| 422 |
+
the Free Software Foundation. If the Library does not specify a
|
| 423 |
+
license version number, you may choose any version ever published by
|
| 424 |
+
the Free Software Foundation.
|
| 425 |
+
|
| 426 |
+
14. If you wish to incorporate parts of the Library into other free
|
| 427 |
+
programs whose distribution conditions are incompatible with these,
|
| 428 |
+
write to the author to ask for permission. For software which is
|
| 429 |
+
copyrighted by the Free Software Foundation, write to the Free
|
| 430 |
+
Software Foundation; we sometimes make exceptions for this. Our
|
| 431 |
+
decision will be guided by the two goals of preserving the free status
|
| 432 |
+
of all derivatives of our free software and of promoting the sharing
|
| 433 |
+
and reuse of software generally.
|
| 434 |
+
|
| 435 |
+
NO WARRANTY
|
| 436 |
+
|
| 437 |
+
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
| 438 |
+
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
| 439 |
+
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
| 440 |
+
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
| 441 |
+
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
| 442 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 443 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
| 444 |
+
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
| 445 |
+
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 446 |
+
|
| 447 |
+
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
| 448 |
+
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
| 449 |
+
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
| 450 |
+
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
| 451 |
+
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
| 452 |
+
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
| 453 |
+
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
| 454 |
+
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
| 455 |
+
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
| 456 |
+
DAMAGES.
|
| 457 |
+
|
| 458 |
+
END OF TERMS AND CONDITIONS
|
| 459 |
+
|
| 460 |
+
How to Apply These Terms to Your New Libraries
|
| 461 |
+
|
| 462 |
+
If you develop a new library, and you want it to be of the greatest
|
| 463 |
+
possible use to the public, we recommend making it free software that
|
| 464 |
+
everyone can redistribute and change. You can do so by permitting
|
| 465 |
+
redistribution under these terms (or, alternatively, under the terms of the
|
| 466 |
+
ordinary General Public License).
|
| 467 |
+
|
| 468 |
+
To apply these terms, attach the following notices to the library. It is
|
| 469 |
+
safest to attach them to the start of each source file to most effectively
|
| 470 |
+
convey the exclusion of warranty; and each file should have at least the
|
| 471 |
+
"copyright" line and a pointer to where the full notice is found.
|
| 472 |
+
|
| 473 |
+
<one line to give the library's name and a brief idea of what it does.>
|
| 474 |
+
Copyright (C) <year> <name of author>
|
| 475 |
+
|
| 476 |
+
This library is free software; you can redistribute it and/or
|
| 477 |
+
modify it under the terms of the GNU Lesser General Public
|
| 478 |
+
License as published by the Free Software Foundation; either
|
| 479 |
+
version 2.1 of the License, or (at your option) any later version.
|
| 480 |
+
|
| 481 |
+
This library is distributed in the hope that it will be useful,
|
| 482 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 483 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 484 |
+
Lesser General Public License for more details.
|
| 485 |
+
|
| 486 |
+
You should have received a copy of the GNU Lesser General Public
|
| 487 |
+
License along with this library; if not, write to the Free Software
|
| 488 |
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
| 489 |
+
|
| 490 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 491 |
+
|
| 492 |
+
You should also get your employer (if you work as a programmer) or your
|
| 493 |
+
school, if any, to sign a "copyright disclaimer" for the library, if
|
| 494 |
+
necessary. Here is a sample; alter the names:
|
| 495 |
+
|
| 496 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
| 497 |
+
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
| 498 |
+
|
| 499 |
+
<signature of Ty Coon>, 1 April 1990
|
| 500 |
+
Ty Coon, President of Vice
|
| 501 |
+
|
| 502 |
+
That's all there is to it!
|
| 503 |
+
|
| 504 |
+
|
local-test-libexif-delta-01-exif-004/afc-libexif/ChangeLog
ADDED
|
@@ -0,0 +1,2103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
2016-09-01 Dan Fandrich <dan@coneharvesters.com>
|
| 2 |
+
* po/sv.po: Updated Swedish translation by Sebastian Rasmussen
|
| 3 |
+
* Updated many translations from launchpad.net
|
| 4 |
+
* Added new translation from launchpad.net's "yakkety" translations:
|
| 5 |
+
* po/ms.po: Added Malay translation by abuyop
|
| 6 |
+
|
| 7 |
+
2014-01-05 Dan Fandrich <dan@coneharvesters.com>
|
| 8 |
+
|
| 9 |
+
* po/es.po: Updated Spanish translation by Antonio Ceballos
|
| 10 |
+
|
| 11 |
+
2013-07-13 Dan Fandrich <dan@coneharvesters.com>
|
| 12 |
+
|
| 13 |
+
* Fixed a C89 compatibility issue (bug #117 reported by
|
| 14 |
+
Guenter Knauf)
|
| 15 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 16 |
+
* po/de.po: Updated German translation by Christian Kirbach
|
| 17 |
+
* po/fr.po: Updated French translation by Frédéric Marchal
|
| 18 |
+
* po/uk.po: Updated Ukrainian translation by Yuri Chornoivan
|
| 19 |
+
|
| 20 |
+
2013-02-23 Dan Fandrich <dan@coneharvesters.com>
|
| 21 |
+
|
| 22 |
+
* po/pl.po: Updated Polish translation by Jakub Bogusz
|
| 23 |
+
|
| 24 |
+
2012-07-12 Dan Fandrich <dan@coneharvesters.com>
|
| 25 |
+
|
| 26 |
+
* Fixed some buffer overflows in exif_entry_format_value()
|
| 27 |
+
This fixes CVE-2012-2814. Reported by Mateusz Jurczyk of
|
| 28 |
+
Google Security Team
|
| 29 |
+
* Fixed an off-by-one error in exif_convert_utf16_to_utf8()
|
| 30 |
+
This can cause a one-byte NUL write past the end of the buffer.
|
| 31 |
+
This fixes CVE-2012-2840
|
| 32 |
+
* Don't read past the end of a tag when converting from UTF-16
|
| 33 |
+
This fixes CVE-2012-2813. Reported by Mateusz Jurczyk of
|
| 34 |
+
Google Security Team
|
| 35 |
+
* Fixed an out of bounds read on corrupted input
|
| 36 |
+
The EXIF_TAG_COPYRIGHT tag ought to be, but perhaps is not,
|
| 37 |
+
NUL-terminated.
|
| 38 |
+
This fixes CVE-2012-2812. Reported by Mateusz Jurczyk of
|
| 39 |
+
Google Security Team
|
| 40 |
+
* Fixed a buffer overflow problem in exif_entry_get_value
|
| 41 |
+
If the application passed in a buffer length of 0, then it would
|
| 42 |
+
be treated as the buffer had unlimited length.
|
| 43 |
+
This fixes CVE-2012-2841
|
| 44 |
+
* Fix a buffer overflow on corrupt EXIF data.
|
| 45 |
+
This fixes bug #3434540 and fixes part of CVE-2012-2836
|
| 46 |
+
Reported by Yunho Kim
|
| 47 |
+
* Fix a buffer overflow on corrupted JPEG data
|
| 48 |
+
An unsigned data length might wrap around when decremented
|
| 49 |
+
below zero, bypassing sanity checks on length.
|
| 50 |
+
This code path can probably only occur if exif_data_load_data()
|
| 51 |
+
is called directly by the application on data that wasn't parsed
|
| 52 |
+
by libexif itself.
|
| 53 |
+
This solves the other part of CVE-2012-2836
|
| 54 |
+
* Fixed some possible division-by-zeros in Olympus-style makernotes
|
| 55 |
+
This fixes bug #3434545, a.k.a. CVE-2012-2837
|
| 56 |
+
Reported by Yunho Kim
|
| 57 |
+
* Released 0.6.21
|
| 58 |
+
|
| 59 |
+
2012-07-09 Dan Fandrich <dan@coneharvesters.com>
|
| 60 |
+
|
| 61 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 62 |
+
* po/de.po: Updated German translation by Christian Kirbach
|
| 63 |
+
* po/pl.po: Updated Polish translation by Jakub Bogusz
|
| 64 |
+
* po/sk.po: Updated Slovak translation by Ivan Masár
|
| 65 |
+
* po/uk.po: Updated Ukrainian translation by Yuri Chornoivan
|
| 66 |
+
* po/vi.po: Updated Vietnamese translation by Trần Ngọc Quân
|
| 67 |
+
* Mention that uk.po must now be updated through translationproject.org
|
| 68 |
+
|
| 69 |
+
2012-06-25 Dan Fandrich <dan@coneharvesters.com>
|
| 70 |
+
|
| 71 |
+
* Updated non-TP translations from launchpad.net's "precise"
|
| 72 |
+
translations:
|
| 73 |
+
be.po bs.po en_GB.po pt.po pt_BR.po ru.po sq.po sr.po tr.po zh_CN.po
|
| 74 |
+
* Added new translations from launchpad.net's "precise" translations:
|
| 75 |
+
* po/en_AU.po: Added English (Australian) translation by Joel Pickett
|
| 76 |
+
* po/uk.po: Added Ukrainian translation by Yuri Chornoivan
|
| 77 |
+
* po/bs.po: Removed some erroneous embedded \r\n in the translations
|
| 78 |
+
* Updated non-TP translations to the latest strings in the source code
|
| 79 |
+
* po/en_CA.po: Updated Canadian English translation
|
| 80 |
+
|
| 81 |
+
2012-05-16 Dan Fandrich <dan@coneharvesters.com>
|
| 82 |
+
|
| 83 |
+
* po/vi.po: Updated Vietnamese translation by Trần Ngọc Quân
|
| 84 |
+
|
| 85 |
+
2011-11-07 Dan Fandrich <dan@coneharvesters.com>
|
| 86 |
+
|
| 87 |
+
* po/de.po: Updated German translation by Christian Kirbach
|
| 88 |
+
|
| 89 |
+
2011-08-26 Dan Fandrich <dan@coneharvesters.com>
|
| 90 |
+
|
| 91 |
+
* po/cs.po: Updated Czech translation by Jan Patera
|
| 92 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 93 |
+
* po/nl.po: Updated Dutch translation by Erwin Poeze
|
| 94 |
+
* po/pl.po: Updated Polish translation by Jakub Bogusz
|
| 95 |
+
* po/sk.po: Updated Slovak translation by Ivan Masár
|
| 96 |
+
* po/sv.po: Updated Swedish translation by Daniel Nylander
|
| 97 |
+
|
| 98 |
+
2011-07-11 Dan Fandrich <dan@coneharvesters.com>
|
| 99 |
+
|
| 100 |
+
* Made mnote_fuji_tag_get_description and
|
| 101 |
+
mnote_canon_tag_get_descripton more robust should any NULL
|
| 102 |
+
descriptions be added to the table (bug #3307219)
|
| 103 |
+
|
| 104 |
+
2011-05-12 Dan Fandrich <dan@coneharvesters.com>
|
| 105 |
+
|
| 106 |
+
* Added more Canon lenses (from Adrian von Bidder and drochner)
|
| 107 |
+
|
| 108 |
+
2011-02-16 Dan Fandrich <dan@coneharvesters.com>
|
| 109 |
+
|
| 110 |
+
* Changed "knots" to more clear "nautical miles" (Ubuntu Launchpad bug
|
| 111 |
+
https://bugs.launchpad.net/bugs/712115 reported by Daniel Thibault).
|
| 112 |
+
|
| 113 |
+
2010-12-15 Dan Fandrich <dan@coneharvesters.com>
|
| 114 |
+
|
| 115 |
+
* Released 0.6.20
|
| 116 |
+
|
| 117 |
+
2010-12-13 Dan Fandrich <dan@coneharvesters.com>
|
| 118 |
+
|
| 119 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 120 |
+
* Updated non-TP translations from launchpad.net:
|
| 121 |
+
be.po en_GB.po pt_BR.po pt.po ru.po sq.po sr.po zh_CN.po
|
| 122 |
+
* po/bs.po: Added Bosnian translation from launchpad.net
|
| 123 |
+
* po/tr.po: Added Turkish translation from launchpad.net
|
| 124 |
+
|
| 125 |
+
2010-12-10 Dan Fandrich <dan@coneharvesters.com>
|
| 126 |
+
|
| 127 |
+
* Changed the display of rational numbers to estimate the number of
|
| 128 |
+
significant figures (based on the size of the denominator) and show
|
| 129 |
+
that number of decimal places. This simplifies the output in the
|
| 130 |
+
case of integers (e.g. resolution), and shows all the available
|
| 131 |
+
accuracy in the case of rationals (e.g. latitude & longitude).
|
| 132 |
+
|
| 133 |
+
2010-10-14 Dan Fandrich <dan@coneharvesters.com>
|
| 134 |
+
|
| 135 |
+
* Fixed some invalid format specifiers and typecasts. This caused a
|
| 136 |
+
problem on mingw32, at least.
|
| 137 |
+
|
| 138 |
+
2010-10-07 Dan Fandrich <dan@coneharvesters.com>
|
| 139 |
+
|
| 140 |
+
* Refactored MakerNote detection code to put detection of each type
|
| 141 |
+
into the module handling that type
|
| 142 |
+
|
| 143 |
+
2010-09-23 Dan Fandrich <dan@coneharvesters.com>
|
| 144 |
+
|
| 145 |
+
* exif_entry_dump() now displays the correct tag name for GPS tags by
|
| 146 |
+
taking the IFD into account when looking up the name. Fixes
|
| 147 |
+
bug #3073307.
|
| 148 |
+
|
| 149 |
+
2010-08-11 Dan Fandrich <dan@coneharvesters.com>
|
| 150 |
+
|
| 151 |
+
* Removed redundant sentence. Fixes Ubuntu bug #197306
|
| 152 |
+
|
| 153 |
+
2010-07-23 Dan Fandrich <dan@coneharvesters.com>
|
| 154 |
+
|
| 155 |
+
* Canon EOS 5D Mark II writes Aperture values as invalid values
|
| 156 |
+
0x80000000/1 which makes pow() throw floating-point exceptions
|
| 157 |
+
|
| 158 |
+
2010-06-16 Dan Fandrich <dan@coneharvesters.com>
|
| 159 |
+
|
| 160 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 161 |
+
* po/it.po: Updated Italian translation by Sergio Zanchetta
|
| 162 |
+
* po/nl.po: Updated Dutch translation by Erwin Poeze
|
| 163 |
+
|
| 164 |
+
2010-02-18 Dan Fandrich <dan@coneharvesters.com>
|
| 165 |
+
|
| 166 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 167 |
+
* po/de.po: Updated German translation by Marcus Meissner
|
| 168 |
+
* po/ja.po: Updated Japanese translation by Tadashi Jokagi
|
| 169 |
+
* po/pl.po: Updated Polish translation by Jakub Bogusz
|
| 170 |
+
* po/vi.po: Updated Vietnamese translation by Clytie Siddall
|
| 171 |
+
* po/en_CA.po: Updated Canadian English translation
|
| 172 |
+
|
| 173 |
+
2010-02-05 Dan Fandrich <dan@coneharvesters.com>
|
| 174 |
+
|
| 175 |
+
* Made the case of text output be more consistent. Now, tag titles
|
| 176 |
+
have each word capitalized (like a title) and tag values
|
| 177 |
+
are always lower case, except the first word which is capitalized
|
| 178 |
+
(more like a sentence).
|
| 179 |
+
|
| 180 |
+
2010-01-25 Dan Fandrich <dan@coneharvesters.com>
|
| 181 |
+
|
| 182 |
+
* configure.ac: Turned on the --enable-silent-rules configure option
|
| 183 |
+
|
| 184 |
+
2009-12-30 Dan Fandrich <dan@coneharvesters.com>
|
| 185 |
+
|
| 186 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 187 |
+
* po/sk.po: Updated Slovak translation by Ivan Masár
|
| 188 |
+
* po/sv.po: Updated Swedish translation by Daniel Nylander
|
| 189 |
+
|
| 190 |
+
2009-12-17 Dan Fandrich <dan@coneharvesters.com>
|
| 191 |
+
|
| 192 |
+
* Don't warn "No thumbnail but entries on thumbnail." unless
|
| 193 |
+
there actually are entries.
|
| 194 |
+
|
| 195 |
+
2009-12-15 Dan Fandrich <dan@coneharvesters.com>
|
| 196 |
+
|
| 197 |
+
* libexif.pc.in: Move -lm flag into Libs.private since it's only
|
| 198 |
+
needed when statically linking. A future enhancement would be to
|
| 199 |
+
make even this dependent on the check for -lm done in configure.
|
| 200 |
+
|
| 201 |
+
2009-12-11 Dan Fandrich <dan@coneharvesters.com>
|
| 202 |
+
|
| 203 |
+
* Added tag 0xEA1C, the Padding tag from the Microsoft HD Photo
|
| 204 |
+
specification.
|
| 205 |
+
|
| 206 |
+
2009-12-08 Dan Fandrich <dan@coneharvesters.com>
|
| 207 |
+
|
| 208 |
+
* Fixed some memory leaks in the write-exif.c example program and
|
| 209 |
+
added some examples of allocating a new tag.
|
| 210 |
+
|
| 211 |
+
2009-11-27 Dan Fandrich <dan@coneharvesters.com>
|
| 212 |
+
|
| 213 |
+
* po/ja.po: Updated Japanese translation by Tadashi Jokagi
|
| 214 |
+
|
| 215 |
+
2009-11-25 Dan Fandrich <dan@coneharvesters.com>
|
| 216 |
+
|
| 217 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 218 |
+
|
| 219 |
+
2009-11-23 Dan Fandrich <dan@coneharvesters.com>
|
| 220 |
+
|
| 221 |
+
* Include README-Win32.txt in all source distributions
|
| 222 |
+
|
| 223 |
+
2009-11-16 Dan Fandrich <dan@coneharvesters.com>
|
| 224 |
+
|
| 225 |
+
* po/ja.po: Updated Japanese translation by Tadashi Jokagi
|
| 226 |
+
|
| 227 |
+
2009-11-12 Dan Fandrich <dan@coneharvesters.com>
|
| 228 |
+
|
| 229 |
+
* Fixed a heap buffer overflow during tag format conversion.
|
| 230 |
+
* Released 0.6.19
|
| 231 |
+
|
| 232 |
+
2009-11-07 Dan Fandrich <dan@coneharvesters.com>
|
| 233 |
+
|
| 234 |
+
* Sorted ExifFormatTable[] in approximate decreasing order of
|
| 235 |
+
popularity to decrease the total average lookup time.
|
| 236 |
+
|
| 237 |
+
2009-11-05 Dan Fandrich <dan@coneharvesters.com>
|
| 238 |
+
|
| 239 |
+
* Added a bunch of new translations from launchpad.net
|
| 240 |
+
* po/be.po: Added Belarusian translation by Iryna Nikanchuk
|
| 241 |
+
* po/en_GB.po: Added English (United Kingdom) translation by Bruce
|
| 242 |
+
Cowan
|
| 243 |
+
* po/it.po: Added Italian translation by Sergio Zanchetta
|
| 244 |
+
* po/ja.po: Added Japanese translation by Shushi Kurose
|
| 245 |
+
* po/pt.po: Added Portuguese translation by nglnx
|
| 246 |
+
* po/sq.po: Added Albanian translation by Vilson Gjeci
|
| 247 |
+
* po/zh_CN.po: Added Chinese (simplified) translation by Tao Wei
|
| 248 |
+
|
| 249 |
+
2009-11-03 Dan Fandrich <dan@coneharvesters.com>
|
| 250 |
+
|
| 251 |
+
* po/da.po: Updated Danish translation by Joe Hansen
|
| 252 |
+
|
| 253 |
+
2009-10-27 Dan Fandrich <dan@coneharvesters.com>
|
| 254 |
+
|
| 255 |
+
* Improved tag table lookup performance by optimally ordering IFD
|
| 256 |
+
search and aborting searches early if the tag is not found.
|
| 257 |
+
|
| 258 |
+
2009-10-14 Dan Fandrich <dan@coneharvesters.com>
|
| 259 |
+
|
| 260 |
+
* Changed the various functions searching for tags in ExifTagTable[]
|
| 261 |
+
to use a binary search. This single change increases the speed of
|
| 262 |
+
a run through the libexif-testsuite by 7%
|
| 263 |
+
|
| 264 |
+
2009-10-13 Dan Fandrich <dan@coneharvesters.com>
|
| 265 |
+
|
| 266 |
+
* po/sv.po: Updated Swedish translation by Daniel Nylander
|
| 267 |
+
* po/vi.po: Updated Vietnamese translation by Clytie Siddall
|
| 268 |
+
* Fixed an inverted logic condition that prevented the bug
|
| 269 |
+
report address from appearing in the .pot file
|
| 270 |
+
* Ensure that ExifTagTable[] is sorted by tag to allow for future
|
| 271 |
+
more efficient searching.
|
| 272 |
+
|
| 273 |
+
2009-10-09 Dan Fandrich <dan@coneharvesters.com>
|
| 274 |
+
|
| 275 |
+
* Released 0.6.18
|
| 276 |
+
|
| 277 |
+
2009-10-09 Dan Fandrich <dan@coneharvesters.com>
|
| 278 |
+
|
| 279 |
+
* po/sr.po: Added Serbian translation by Marko Uskokovic
|
| 280 |
+
* po/pt_BR.po: Added Portuguese (Brazil) translation by André Gondi
|
| 281 |
+
|
| 282 |
+
2009-10-08 Dan Fandrich <dan@coneharvesters.com>
|
| 283 |
+
|
| 284 |
+
* Demoted from EXIF_LOG_CODE_CORRUPT_DATA to EXIF_LOG_CODE_DEBUG the
|
| 285 |
+
MakerNote log messages that would result if a MakerNote were
|
| 286 |
+
rewritten by an application without rebasing the internal data
|
| 287 |
+
offsets. The exif front end (at least) aborts processing if
|
| 288 |
+
such a log message is found, but these kinds of errors are
|
| 289 |
+
far too common (and practically unavoidable) to handle them
|
| 290 |
+
this way.
|
| 291 |
+
|
| 292 |
+
2009-10-06 Dan Fandrich <dan@coneharvesters.com>
|
| 293 |
+
|
| 294 |
+
* Added --enable-maintainer-mode in configure and made the SourceForge
|
| 295 |
+
logo appear in the Doxygen documentation only when it's enabled.
|
| 296 |
+
|
| 297 |
+
2009-10-05 Dan Fandrich <dan@coneharvesters.com>
|
| 298 |
+
|
| 299 |
+
* Updated translations from Translation Project members to the
|
| 300 |
+
latest & hopefully final .pot file before release
|
| 301 |
+
|
| 302 |
+
2009-10-01 Dan Fandrich <dan@coneharvesters.com>
|
| 303 |
+
|
| 304 |
+
* Bumped the library minor version number because of the addition
|
| 305 |
+
of exif_loader_get_buf()
|
| 306 |
+
* Added exif.h to the source tarball so users can generate full
|
| 307 |
+
Doxygen documentation.
|
| 308 |
+
|
| 309 |
+
2009-09-30 Dan Fandrich <dan@coneharvesters.com>
|
| 310 |
+
|
| 311 |
+
* Added a new public API function, exif_loader_get_buf(), which
|
| 312 |
+
returns a pointer to the raw data in the ExifLoader. Without this,
|
| 313 |
+
the only way to get the ExifLoader data out was as an
|
| 314 |
+
ExifData and using only the default set of ExifDataOptions.
|
| 315 |
+
|
| 316 |
+
2009-09-29 Dan Fandrich <dan@coneharvesters.com>
|
| 317 |
+
|
| 318 |
+
* Added EXIF_DATA_TYPE_UNKNOWN as a backwards-compatible
|
| 319 |
+
replacement for most uses of EXIF_DATA_TYPE_COUNT since that's
|
| 320 |
+
a clearer name for how it's being used.
|
| 321 |
+
|
| 322 |
+
2009-09-26 Dan Fandrich <dan@coneharvesters.com>
|
| 323 |
+
|
| 324 |
+
* libexif/exif-data.c: Added more error log messages and improved
|
| 325 |
+
a few data boundary checks.
|
| 326 |
+
* Sped up exif_content_fix() considerably by splitting the one giant
|
| 327 |
+
loop into two much smaller & faster loops.
|
| 328 |
+
|
| 329 |
+
2009-09-24 Dan Fandrich <dan@coneharvesters.com>
|
| 330 |
+
|
| 331 |
+
* Fixed some problems in MakerNote parsing that could cause a
|
| 332 |
+
read past the end of a buffer and therefore a segfault.
|
| 333 |
+
* Allow MakerNote parsing to continue even if one tag parses
|
| 334 |
+
incorrectly.
|
| 335 |
+
* Log an error whenever memory allocation fails in MakerNote parsing.
|
| 336 |
+
|
| 337 |
+
2009-09-23 Dan Fandrich <dan@coneharvesters.com>
|
| 338 |
+
|
| 339 |
+
* Removed bogus "APEX" value from shutter speed display (thanks to
|
| 340 |
+
Jef Driesen for confirming this)
|
| 341 |
+
* Fixed a couple of off-by-one unnecessary string truncations
|
| 342 |
+
* Define M_PI for those systems that don't have it
|
| 343 |
+
|
| 344 |
+
2009-09-23 Jan Patera <patera@users.sourceforge.net>
|
| 345 |
+
|
| 346 |
+
* po/cs.po: Updated Czech translation by Jan Patera
|
| 347 |
+
|
| 348 |
+
2009-09-18 Dan Fandrich <dan@coneharvesters.com>
|
| 349 |
+
|
| 350 |
+
* Added support for writing Pentax and Casio v2 MakerNotes
|
| 351 |
+
* Now displaying all components in Pentax and Casio v2 MakerNotes
|
| 352 |
+
when a tag has more than one
|
| 353 |
+
|
| 354 |
+
2009-09-18 Dan Fandrich <dan@coneharvesters.com>
|
| 355 |
+
|
| 356 |
+
* po/de.po: Updated German translation by Marcus Meissner
|
| 357 |
+
* po/sv.po: Updated Swedish translation by Daniel Nylander
|
| 358 |
+
* po/vi.po: Updated Vietnamese translation by Clytie Siddall
|
| 359 |
+
|
| 360 |
+
2009-09-17 Dan Fandrich <dan@coneharvesters.com>
|
| 361 |
+
|
| 362 |
+
* po/pl.po: Updated Polish translation by Jakub Bogusz
|
| 363 |
+
|
| 364 |
+
2009-09-16 Dan Fandrich <dan@coneharvesters.com>
|
| 365 |
+
|
| 366 |
+
* po/en_CA.po: Updated Canadian English translation
|
| 367 |
+
|
| 368 |
+
2009-08-12 Lutz Mueller <lutz@users.sourceforge.com>
|
| 369 |
+
|
| 370 |
+
Patch by Vladimir Petrov <vppetrov@mm-sol.com> plus some whitespace
|
| 371 |
+
fixes by myself:
|
| 372 |
+
|
| 373 |
+
* libexif/exif-entry.c: (exif_entry_[fix,get_value,initialize]):
|
| 374 |
+
Support EXIF_TAG_ISO_SPEED_RATINGS.
|
| 375 |
+
|
| 376 |
+
2009-06-15 Dan Fandrich <dan@coneharvesters.com>
|
| 377 |
+
|
| 378 |
+
* po/da.po: Danish translation corrections by Lars Christian Jensen
|
| 379 |
+
|
| 380 |
+
2009-06-03 Dan Fandrich <dan@coneharvesters.com>
|
| 381 |
+
|
| 382 |
+
* po/da.po: Added Danish translation by Joe Hansen
|
| 383 |
+
|
| 384 |
+
2009-05-28 Dan Fandrich <dan@coneharvesters.com>
|
| 385 |
+
|
| 386 |
+
* Fixed negative exposure values in Canon makernotes (bug #2797280)
|
| 387 |
+
|
| 388 |
+
2009-05-02 Dan Fandrich <dan@coneharvesters.com>
|
| 389 |
+
|
| 390 |
+
* Added contrib/examples/write-exif.c
|
| 391 |
+
* Create a valid default for EXIF_TAG_COMPONENTS_CONFIGURATION
|
| 392 |
+
|
| 393 |
+
2009-03-21 Lutz Mueller <lutz@users.sourceforge.net>
|
| 394 |
+
|
| 395 |
+
Meder Kydyraliev <meder.k@gmail.com> suggested to add some sanity
|
| 396 |
+
checks:
|
| 397 |
+
|
| 398 |
+
* libexif/exif-data.c (exif_data_load_entry),
|
| 399 |
+
(exif_data_load_data_thumbnail)
|
| 400 |
+
* libexif/canon/exif_mnote-data-canon.c
|
| 401 |
+
(exif_mnote_data_canon_load)
|
| 402 |
+
* libexif/fuji/exif-mnote-data-fuji.c
|
| 403 |
+
(exif_mnote_data_fuji_load)
|
| 404 |
+
* libexif/olympus/exif-mnote-data-olympus.c
|
| 405 |
+
(exif_mnote_data_olympus_load)
|
| 406 |
+
* libexif/pentax/exif-mnote-data-pentax.c
|
| 407 |
+
(exif_mnote_data_pentax_load)
|
| 408 |
+
|
| 409 |
+
2009-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 410 |
+
|
| 411 |
+
* libexif/canon/exif-mnote-data-canon.c:
|
| 412 |
+
(exif_mnote_data_canon_load): Fix the coding style in this function
|
| 413 |
+
to make it easier to read.
|
| 414 |
+
|
| 415 |
+
2009-02-02 Dan Fandrich <dan@coneharvesters.com>
|
| 416 |
+
|
| 417 |
+
* Added AC_C_INLINE to configure.ac to define the inline keyword
|
| 418 |
+
if the compiler doesn't handle it already.
|
| 419 |
+
|
| 420 |
+
2009-01-28 Dan Fandrich <dan@coneharvesters.com>
|
| 421 |
+
|
| 422 |
+
* Decode the value for EXIF_TAG_LIGHT_SOURCE and EXIF_TAG_SCENE_TYPE
|
| 423 |
+
* Split out the generic ExifEntry formatting code into a new function
|
| 424 |
+
exif_entry_format_value()
|
| 425 |
+
* Fixed some signed vs unsigned formatting errors
|
| 426 |
+
* Format the EXIF_TAG_GPS_TIME_STAMP & EXIF_TAG_GPS_ALTITUDE_REF tags
|
| 427 |
+
* Improved the wrong data type fixup
|
| 428 |
+
* Separated the MNOTE_SANYO_TAG_SELFTIMER 2 sec. case from the other
|
| 429 |
+
On/Off cases
|
| 430 |
+
* Renamed MNOTE_NIKON_TAG_PREVIEWIMAGE_IFD_POINTERS to show that it's
|
| 431 |
+
an IFD. The case of IFDs in MakerNotes needs to be handled better
|
| 432 |
+
because right now, those MakerNote IFD tags are corrupted since
|
| 433 |
+
the sub-IFDs aren't being read and written.
|
| 434 |
+
|
| 435 |
+
2009-01-22 Dan Fandrich <dan@coneharvesters.com>
|
| 436 |
+
|
| 437 |
+
* Fix exif_tag_get_support_level_in_ifd() to handle the case where two
|
| 438 |
+
tags with the same number exist in different IFDs.
|
| 439 |
+
* Added test-tagtable to do some tests on the static EXIF tag
|
| 440 |
+
information table.
|
| 441 |
+
|
| 442 |
+
2009-01-21 Dan Fandrich <dan@coneharvesters.com>
|
| 443 |
+
|
| 444 |
+
* libexif/exif-entry.c: Initialize the default for EXIF_TAG_COLOR_SPACE
|
| 445 |
+
to "Uncalibrated"
|
| 446 |
+
* libexif/exif-data.c: Reduce the recursion limit
|
| 447 |
+
* When the data type is not known in exif_tag_get_support_level_in_ifd
|
| 448 |
+
check the support level for all data types and if it's all the same,
|
| 449 |
+
return that. This means that fixing a new EXIF tag block will
|
| 450 |
+
actually create some tags in it now.
|
| 451 |
+
|
| 452 |
+
2009-01-15 Dan Fandrich <dan@coneharvesters.com>
|
| 453 |
+
|
| 454 |
+
* Interpret more Sanyo MakerNote tags
|
| 455 |
+
|
| 456 |
+
2009-01-12 Dan Fandrich <dan@coneharvesters.com>
|
| 457 |
+
|
| 458 |
+
* Added support for Epson MakerNotes, which have the identical
|
| 459 |
+
tag format and namespace of the Olympus ones.
|
| 460 |
+
|
| 461 |
+
2009-01-06 Dan Fandrich <dan@coneharvesters.com>
|
| 462 |
+
|
| 463 |
+
* libexif/exif-tags.c: Added remaining GPS tags from the EXIF 2.2
|
| 464 |
+
spec to the tag table.
|
| 465 |
+
|
| 466 |
+
2009-01-03 Dan Fandrich <dan@coneharvesters.com>
|
| 467 |
+
|
| 468 |
+
* contrib/examples/photographer.c: Added example program to show how
|
| 469 |
+
to display EXIF and MakerNote tags
|
| 470 |
+
|
| 471 |
+
2008-12-22 Dan Fandrich <dan@coneharvesters.com>
|
| 472 |
+
|
| 473 |
+
* po/vi.po: Updated Vietnamese translation by Clytie Siddall
|
| 474 |
+
* Fixed bug #1946138 to stop ignoring CFLAGS in the sqrt configure test
|
| 475 |
+
|
| 476 |
+
2008-11-25 Dan Fandrich <dan@coneharvesters.com>
|
| 477 |
+
|
| 478 |
+
* po/sk.po: Updated Slovak translation by Ivan Masár
|
| 479 |
+
|
| 480 |
+
2008-11-22 Dan Fandrich <dan@coneharvesters.com>
|
| 481 |
+
|
| 482 |
+
* Added Doxygen comments for the main API entry points and data
|
| 483 |
+
structures
|
| 484 |
+
|
| 485 |
+
2008-11-18 Dan Fandrich <dan@coneharvesters.com>
|
| 486 |
+
|
| 487 |
+
* libexif/exif-entry.c & configure.ac: use localtime_r when available
|
| 488 |
+
to make libexif thread safe
|
| 489 |
+
* po/nl.po: Updated Dutch translation by Erwin Poeze
|
| 490 |
+
* po/pl.po: Updated Polish translation by Jakub Bogusz
|
| 491 |
+
* contrib/examples/*: Added a couple of simple example programs
|
| 492 |
+
to show how to use libexif. One was written by Naysawn Naderi
|
| 493 |
+
and the other one I wrote. Closes bug #1246824.
|
| 494 |
+
|
| 495 |
+
2008-11-06 Dan Fandrich <dan@coneharvesters.com>
|
| 496 |
+
|
| 497 |
+
* Released 0.6.17
|
| 498 |
+
|
| 499 |
+
2008-11-05 Dan Fandrich <dan@coneharvesters.com>
|
| 500 |
+
|
| 501 |
+
* aolserver/*: moved to contrib/aolserver/
|
| 502 |
+
* README: updated
|
| 503 |
+
* po/de.po: Updated German translation by Marcus Meissner
|
| 504 |
+
* Added contrib/watcom/ directory to the source tarball now that
|
| 505 |
+
Jan Patera brought it up-to-date.
|
| 506 |
+
* libexif.spec.in: changed default release number to 1; added NEWS,
|
| 507 |
+
AUTHORS and COPYING files to package; moved libexif.so file to -devel
|
| 508 |
+
package; corrected license to LGPL
|
| 509 |
+
|
| 510 |
+
2008-10-20 Jan Patera <patera@users.sourceforge.net>
|
| 511 |
+
|
| 512 |
+
* libexif/pentax/mnote-pentax-tag.c & olympus/mnote-olympus-tag.c:
|
| 513 |
+
Don't crash in mnote_XX_tag_get_description on unknown tags
|
| 514 |
+
|
| 515 |
+
2008-10-04 Jan Patera <patera@users.sourceforge.net>
|
| 516 |
+
|
| 517 |
+
* libexif/canon/mnote-canon-entry.c: fixed interpretation
|
| 518 |
+
of Auto ISO and Self-Timer entries
|
| 519 |
+
|
| 520 |
+
2008-10-08 Aric Blumer <aricblumer@users.sourceforge.net>
|
| 521 |
+
|
| 522 |
+
* libexif/exif-tag.c: GPS tags EXIF_TAG_GPS_IMG_DIRECTION_REF
|
| 523 |
+
and EXIF_TAG_GPS_IMG_DIRECTION are now recognized
|
| 524 |
+
|
| 525 |
+
2008-10-04 Jan Patera <patera@users.sourceforge.net>
|
| 526 |
+
|
| 527 |
+
* libexif/olympus/exif-mnote-data-olympus.c: bug #2071600,
|
| 528 |
+
gnome Bug #549029: Original v1 Nikon makernotes
|
| 529 |
+
are always parsed using MM order, regardless of
|
| 530 |
+
main EXIF data word order.
|
| 531 |
+
|
| 532 |
+
2008-10-04 Louis Strous <louis_strous@users.sourceforge.net>
|
| 533 |
+
|
| 534 |
+
* libexif/exif-loader.c: DHT & DQT markers are now properly
|
| 535 |
+
skipped when searching for APP1 marker in JPEG stream.
|
| 536 |
+
Apparently such files are created by Gisteq PhotoTrackr SW
|
| 537 |
+
used to add GPS tags.
|
| 538 |
+
|
| 539 |
+
2008-10-02 Niek Bergboer <niek@google.com>
|
| 540 |
+
|
| 541 |
+
* libexif/exif-data.c libexif/canon/exif-mnote-data-canon.c
|
| 542 |
+
libexif/fuji/exif-mnote-data-fuji.c
|
| 543 |
+
libexif/olympus/exif-mnote-data-olympus.c
|
| 544 |
+
libexif/pentax/exif-mnote-data-pentax.c:
|
| 545 |
+
Replaced unsigned int by size_t in some places
|
| 546 |
+
Added some checks on sizes, makernotes shouldn't
|
| 547 |
+
be larger than 64kb.
|
| 548 |
+
|
| 549 |
+
2008-09-04 Dan Fandrich <dan@coneharvesters.com>
|
| 550 |
+
|
| 551 |
+
* po/nl.po: Updated Dutch translation by Erwin Poeze
|
| 552 |
+
|
| 553 |
+
2008-07-25 Marcus Meissner <marcus@jet.franken.de>
|
| 554 |
+
|
| 555 |
+
* libexif/exif-content.c: Handle realloc to 0 case
|
| 556 |
+
correctly. Fixes EOG and GIMP crashes.
|
| 557 |
+
|
| 558 |
+
2008-06-26 Jan Patera <patera@users.sourceforge.net>
|
| 559 |
+
|
| 560 |
+
* libexif/olympus/exif-mnote-data-olympus.c: better support for
|
| 561 |
+
MNOTE_OLYMPUS_TAG_FLASHDEVICE/SENSORTEMPERATURE/LENSTEMPERATURE
|
| 562 |
+
|
| 563 |
+
2008-06-23 Lutz Mueller <lutz@users.sourceforge.net>
|
| 564 |
+
|
| 565 |
+
Patch by Mika Raento <mikie@google.com>:
|
| 566 |
+
|
| 567 |
+
* libexif/exif-loader.c: (exif_loader_free) Don't forget the logger.
|
| 568 |
+
|
| 569 |
+
2008-06-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 570 |
+
|
| 571 |
+
* configure.ac: Revert previous commit
|
| 572 |
+
* po/zh_CN.po: Remove.
|
| 573 |
+
* po/[sk,vi].po: Revert.
|
| 574 |
+
|
| 575 |
+
2008-06-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 576 |
+
|
| 577 |
+
* configure.ac: New po-file: zh_CN
|
| 578 |
+
* po/zh_CN.po: New
|
| 579 |
+
* po/[sk,vi].po: Updated.
|
| 580 |
+
|
| 581 |
+
2008-05-06 Marcus Meissner <meissner@suse.de>
|
| 582 |
+
|
| 583 |
+
* libexif/exif-content.c: Fixed a endless loop
|
| 584 |
+
possibility in content remove (triggered by EOG
|
| 585 |
+
and potentially others on certain JPEGs).
|
| 586 |
+
|
| 587 |
+
2008-04-03 Dan Fandrich <dan@coneharvesters.com>
|
| 588 |
+
|
| 589 |
+
po/sk.po: Updated Slovak translation by Ivan Masár
|
| 590 |
+
|
| 591 |
+
2008-02-20 Lutz Mueller <lutz@users.sourceforge.net>
|
| 592 |
+
|
| 593 |
+
Follow-up on #1774591:
|
| 594 |
+
|
| 595 |
+
* libexif/exif-data.c: (exif_data_save_data_content) Remove check for
|
| 596 |
+
now impossible NULL value.
|
| 597 |
+
|
| 598 |
+
2008-02-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 599 |
+
|
| 600 |
+
Fix #1865046:
|
| 601 |
+
|
| 602 |
+
* COPYING:
|
| 603 |
+
* libexif/...: Use 'ue' instead of some strange German character.
|
| 604 |
+
|
| 605 |
+
2008-02-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 606 |
+
|
| 607 |
+
* libexif/exif-loader.c: (exif_loader_get_data) Return NULL if no
|
| 608 |
+
EXIF data has been found.
|
| 609 |
+
|
| 610 |
+
2008-02-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 611 |
+
|
| 612 |
+
Jan Patera <patera@pictview.com> spotted a problem with my last fix
|
| 613 |
+
for #1774591:
|
| 614 |
+
|
| 615 |
+
* libexif/exif-content.c: (exif_content_remove_entry) Recover
|
| 616 |
+
correctly in case of error by remembering the original size of the
|
| 617 |
+
realloc'ed data.
|
| 618 |
+
* libexif/exif-data.c: (exif_data_save_data_entry),
|
| 619 |
+
(exif_data_save_data_content) Same here.
|
| 620 |
+
* libexif/canon/exif-mnote-data-canon.c:
|
| 621 |
+
(exif_mnote_data_canon_save), (exif_mnote_data_canon_load) Same here.
|
| 622 |
+
* libexif/fuji/exif-mnote-data-fuji.c:
|
| 623 |
+
(exif_mnote_data_fuji_save), (exif_mnote_data_fuji_load) Same here.
|
| 624 |
+
* libexif/olympus/exif-mnote-data-olympus.c:
|
| 625 |
+
(exif_mnote_data_olympus_save) Same here.
|
| 626 |
+
|
| 627 |
+
2008-02-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 628 |
+
|
| 629 |
+
* Changelog
|
| 630 |
+
* README: use 'ue' instead of some stange German character.
|
| 631 |
+
|
| 632 |
+
2008-02-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 633 |
+
|
| 634 |
+
Fix #1774591 (partially):
|
| 635 |
+
|
| 636 |
+
* libexif/exif-content.c: (exif_content_remove_entry) Check the
|
| 637 |
+
return value of exif_mem_realloc.
|
| 638 |
+
* libexif/exif-data.c: (exif_data_save_data_entry),
|
| 639 |
+
(exif_data_save_data_content) Same here.
|
| 640 |
+
* libexif/canon/exif-mnote-data-canon.c:
|
| 641 |
+
(exif_mnote_data_canon_save), (exif_mnote_data_canon_load) Same here.
|
| 642 |
+
* libexif/fuji/exif-mnote-data-fuji.c:
|
| 643 |
+
(exif_mnote_data_fuji_save), (exif_mnote_data_fuji_load) Same here.
|
| 644 |
+
* libexif/olympus/exif-mnote-data-olympus.c:
|
| 645 |
+
(exif_mnote_data_olympus_save) Same here.
|
| 646 |
+
|
| 647 |
+
2008-02-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 648 |
+
|
| 649 |
+
Fix #1884609 (partially):
|
| 650 |
+
|
| 651 |
+
* libexif/exif-entry.c: (exif_entry_initialize) Initialize
|
| 652 |
+
EXIF_TAG_FLASH and EXIF_TAG_COLOR_SPACE.
|
| 653 |
+
|
| 654 |
+
2007-12-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 655 |
+
|
| 656 |
+
Suggestion by Andreas Kleinert <Andreas_Kleinert@gmx.de>:
|
| 657 |
+
|
| 658 |
+
* libexif/exif-entry.c: (exif_entry_get_value) Use %lf for double
|
| 659 |
+
instead of %f (which is for float).
|
| 660 |
+
|
| 661 |
+
2007-12-20 Lutz Mueller <lutz@users.sourceforge.net>
|
| 662 |
+
|
| 663 |
+
Updated translations by Translation Project Robot
|
| 664 |
+
<robot@translationproject.org>:
|
| 665 |
+
|
| 666 |
+
* po/[vi,pl].po: Updated files.
|
| 667 |
+
|
| 668 |
+
2007-12-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 669 |
+
|
| 670 |
+
Dan Fandrich <dan@coneharvesters.com> pointed out the following:
|
| 671 |
+
|
| 672 |
+
* configure.ac: Keep gettext requirement as low as 0.14.1.
|
| 673 |
+
gettextize changes it automatically to 0.17, but as long as we don't
|
| 674 |
+
know why, there is no need to enforce this version.
|
| 675 |
+
|
| 676 |
+
2007-12-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 677 |
+
|
| 678 |
+
Marcus Meissner <marcus@jet.franken.de> pointed out the following:
|
| 679 |
+
|
| 680 |
+
* libexif/exif-data.c: (exif_data_load_data_thumbnail) ExifLong is
|
| 681 |
+
unsigned. Therefore no need to check for negative values. Check for
|
| 682 |
+
sane offset instead.
|
| 683 |
+
|
| 684 |
+
2007-12-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 685 |
+
|
| 686 |
+
* po/*.po: Updated po-files.
|
| 687 |
+
* libexif/exif-data.c: (exif_data_load_data_thumbnail) guard against
|
| 688 |
+
negative size (in addition to negative offset), too.
|
| 689 |
+
|
| 690 |
+
2007-12-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 691 |
+
|
| 692 |
+
Bug pointed out by Meder Kydyraliev, Google Security Team:
|
| 693 |
+
|
| 694 |
+
* libexif/exif-data.c: (exif_data_load_data_thumbnail) Ignore bugus
|
| 695 |
+
data.
|
| 696 |
+
|
| 697 |
+
2007-12-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 698 |
+
|
| 699 |
+
* README: Point users to some tools needed to build libexif.
|
| 700 |
+
* configure.ac: It looks like po/Makefile.in is already registered
|
| 701 |
+
with AC_CONFIG_FILES (whatever this means).
|
| 702 |
+
|
| 703 |
+
2007-12-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 704 |
+
|
| 705 |
+
Bug pointed out by Meder Kydyraliev, Google Security Team:
|
| 706 |
+
|
| 707 |
+
* libexif/exif-loader.c: (exif_loader_write) Ignore buffers of
|
| 708 |
+
zero length.
|
| 709 |
+
|
| 710 |
+
2007-12-07 Jan Patera <patera@users.sourceforge.net>
|
| 711 |
+
|
| 712 |
+
* Added support for Fuji makernotes
|
| 713 |
+
|
| 714 |
+
2007-11-13 Dan Fandrich <dan@coneharvesters.com>
|
| 715 |
+
* Added support for a new macro NO_VERBOSE_TAG_DATA to allow
|
| 716 |
+
some size reduction but still retain the ability to properly
|
| 717 |
+
interpret each tag.
|
| 718 |
+
* Added an end-of-table marker in the Canon color_information
|
| 719 |
+
makernote table that could otherwise potentially cause a crash
|
| 720 |
+
on a bad image.
|
| 721 |
+
|
| 722 |
+
2007-11-12 Dan Fandrich <dan@coneharvesters.com>
|
| 723 |
+
* Added support for more Olympus makernotes, based on data on
|
| 724 |
+
Phil Harvey's ExifTool page at
|
| 725 |
+
http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/
|
| 726 |
+
and sanity checked by the pel-images in the libexif test suite.
|
| 727 |
+
* Added support for Sanyo makernotes, which have the identical
|
| 728 |
+
tag format and (so it seems) namespace of the Olympus tags.
|
| 729 |
+
|
| 730 |
+
2007-11-08 Dan Fandrich <dan@coneharvesters.com>
|
| 731 |
+
* Added Canadian English translation, eh?
|
| 732 |
+
|
| 733 |
+
2007-11-06 Dan Fandrich <dan@coneharvesters.com>
|
| 734 |
+
* Renamed EXIF_TAG_UNKNOWN_C4A5 to EXIF_TAG_PRINT_IMAGE_MATCHING
|
| 735 |
+
The PIM entry seems to have a format consisting of an 8 byte
|
| 736 |
+
magic number, 6 byte version number, 2 byte record count field,
|
| 737 |
+
then a series of 6 byte records consisting of a 2 byte tag field
|
| 738 |
+
and an 4 byte data field.
|
| 739 |
+
|
| 740 |
+
2007-10-29 Dan Fandrich <dan@coneharvesters.com>
|
| 741 |
+
* Fixed some typos in messages
|
| 742 |
+
* Made some structs const
|
| 743 |
+
* Support compiling away the detailed tag tables and log messages when
|
| 744 |
+
the NO_VERBOSE_TAG_STRINGS macro is defined to reduce the size of
|
| 745 |
+
the library for use in embedded applications where space is at
|
| 746 |
+
a premium
|
| 747 |
+
* Display the raw value of a tag when the tag is unknown
|
| 748 |
+
|
| 749 |
+
2007-09-12 Jan Patera <patera@users.sourceforge.net>
|
| 750 |
+
|
| 751 |
+
* Enhancements to Canon makernote parsers submitted by Thorsten Kukuk
|
| 752 |
+
* Added Dutch and Swedish translations, updated Slovak translation
|
| 753 |
+
|
| 754 |
+
2007-08-16 Jan Patera <patera@users.sourceforge.net>
|
| 755 |
+
|
| 756 |
+
* exif-mnote-data-olympus.c: Fix of bugs #1773810, #1774626, gnome bug #466044:
|
| 757 |
+
Some Olympus files have main IFD in MM byte order as well as makernote, but
|
| 758 |
+
makernote order was guessed wrongly. Bug introduced when fixing bug #1525770.
|
| 759 |
+
|
| 760 |
+
2007-06-25 Jan Patera <patera@users.sourceforge.net>
|
| 761 |
+
|
| 762 |
+
* Endianess of Nikon V1 makernotes is now guessed, it might not
|
| 763 |
+
be the same as of the main IFD
|
| 764 |
+
|
| 765 |
+
2007-05-21 Jan Patera <patera@users.sourceforge.net>
|
| 766 |
+
|
| 767 |
+
* First version of Czech localization (cs.po)
|
| 768 |
+
* First version of Slovak localization (sk.po), submitted by Ivan Masar
|
| 769 |
+
|
| 770 |
+
2007-05-15 Jan Patera <patera@users.sourceforge.net>
|
| 771 |
+
|
| 772 |
+
* Windows XP Explorer writes Title, Comment, Author, Keywords, and
|
| 773 |
+
Subject metadata into proprietary UTF16-encoded tags 0x9c9b-0x9c9f
|
| 774 |
+
in IFD0. We now recognize them, exif_entry_get_value returns their value
|
| 775 |
+
converted to UTF8. BTW, Explorer corrupts makernotes using offsets
|
| 776 |
+
relative to IFD0...
|
| 777 |
+
|
| 778 |
+
2007-05-13 Jan Patera <patera@users.sourceforge.net>
|
| 779 |
+
|
| 780 |
+
* Added support of a new Pentax makernote type, plus another makernote
|
| 781 |
+
type shared by Pentax & Casio
|
| 782 |
+
* Updated several tags
|
| 783 |
+
* Fixed some "security" sanity checks for broken entries
|
| 784 |
+
|
| 785 |
+
2007-05-09 Jan Patera <patera@users.sourceforge.net>
|
| 786 |
+
|
| 787 |
+
* Added support for Olympus S760 & S770 makernote (bug #1703284)
|
| 788 |
+
* Fixed crashes when looking up invalid values (bug #1457501)
|
| 789 |
+
* Added heuristics (bug #1525770): mismatching Olympus makernote
|
| 790 |
+
in big endian when the rest is in little endian is detected
|
| 791 |
+
to prevent crashes
|
| 792 |
+
* Added option EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE to prevent
|
| 793 |
+
modification of maker notes
|
| 794 |
+
* EXIF_DATA_OPTION_IGNORE_UNKNOWN_TAGS propagated to Canon makernote
|
| 795 |
+
(Bug #1617991)
|
| 796 |
+
* Updated several tags
|
| 797 |
+
* Updated translations
|
| 798 |
+
|
| 799 |
+
2007-05-06 Jan Patera <patera@users.sourceforge.net>
|
| 800 |
+
|
| 801 |
+
* libexif/olympus/exif-mnote-data-olympus.c: Nikon v1 makernotes were saved
|
| 802 |
+
with wrong offsets, Nikon v1 & v2 maker notes were saved with wrong offset
|
| 803 |
+
to 2nd IFD (Reported by Joakim Larsson as patch #1664543)
|
| 804 |
+
|
| 805 |
+
2007-04-24 Jan Patera <patera@users.sourceforge.net>
|
| 806 |
+
|
| 807 |
+
* libexif/canon/mnote-canon-entry.c: Added hook for ISO settings of Canon
|
| 808 |
+
PowerShot S3 IS - unlike other Canons, it doesn't use index into LUT, but
|
| 809 |
+
direct ISO value ored w/ 0x4000
|
| 810 |
+
|
| 811 |
+
2007-03-17 Jan Patera <patera@users.sourceforge.net>
|
| 812 |
+
|
| 813 |
+
* libexif/exif-entry.c: Fixed values of EXIF_TAG_PHOTOMETRIC_INTERPRETATION,
|
| 814 |
+
updated values of EXIF_TAG_COMPRESSION.
|
| 815 |
+
|
| 816 |
+
2007-02-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 817 |
+
|
| 818 |
+
Suggestions by Jef Driesen <jefdriesen@hotmail.com>:
|
| 819 |
+
|
| 820 |
+
* libexif/exif-entry.c: Correct formulas regarding to APEX values.
|
| 821 |
+
|
| 822 |
+
2007-02-14 Jan Patera <patera@users.sourceforge.net>
|
| 823 |
+
|
| 824 |
+
* libexif/olympus/mnote-olympus-entry.c:
|
| 825 |
+
Updated MNOTE_OLYMPUS_TAG_QUALITY & MNOTE_OLYMPUS_TAG_VERSION
|
| 826 |
+
|
| 827 |
+
2006-10-03 Marcus Meissner <marcus@jet.franken.de>
|
| 828 |
+
|
| 829 |
+
* libexif/olympus/*.[ch]: Added several Nikon Makernotes
|
| 830 |
+
entries, extracted from exiftool.
|
| 831 |
+
|
| 832 |
+
2006-09-19 Jan Patera <patera@users.sourceforge.net>
|
| 833 |
+
|
| 834 |
+
* libexif/exif-loader.c: exif_loader_write() skips non-EXIF APP1 markers
|
| 835 |
+
|
| 836 |
+
2006-09-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 837 |
+
|
| 838 |
+
Patch by Jef Driesen <jefdriesen@hotmail.com>:
|
| 839 |
+
|
| 840 |
+
* libexif/canon/*: Improve support for canon maker notes.
|
| 841 |
+
|
| 842 |
+
2006-05-05 Jan Patera <patera@users.sourceforge.net>
|
| 843 |
+
* libexif/exif-content.c: fixed bug #1471060: wasted space in
|
| 844 |
+
exif_content_add_entry() & exif_content_remove_entry(); also safe
|
| 845 |
+
handling of failed realloc in exif_content_add_entry()
|
| 846 |
+
|
| 847 |
+
2006-04-15 Jan Patera <patera@users.sourceforge.net>
|
| 848 |
+
|
| 849 |
+
* libexif/exif-loader.c: exif_loader_write() correctly skips APP2 marker
|
| 850 |
+
with ICC profile because ImageMagick flips order of APP1 EXIF and
|
| 851 |
+
APP2 ICC markers.
|
| 852 |
+
|
| 853 |
+
2006-02-19 Jan Patera <patera@users.sourceforge.net>
|
| 854 |
+
|
| 855 |
+
* libexif/exif-utils.h: ExifByte is now explicitly unsigned char,
|
| 856 |
+
added ExifSByte as signed char.
|
| 857 |
+
|
| 858 |
+
2006-02-13 Lutz Mueller <lutz@topfrose.de>
|
| 859 |
+
|
| 860 |
+
* libexif/canon/mnote-canon-entry.c: Fix typo.
|
| 861 |
+
* libexif/exif-entry.c: s/compulsatory/compulsory
|
| 862 |
+
* libexif/exif-tag.c: Fix typo.
|
| 863 |
+
* libexif/olympus/mnote-olympus-entry.c: Fix typo.
|
| 864 |
+
* test/nls/test-nls.c: Add translators' comment.
|
| 865 |
+
|
| 866 |
+
2006-01-19 Marcus Meissner <marcus@jet.franken.de>
|
| 867 |
+
|
| 868 |
+
* libexif/exif-data.c: Let exif_data_load_data_entry() signal failure
|
| 869 |
+
and discard entry in caller if it does.
|
| 870 |
+
|
| 871 |
+
2006-01-16 Hubert Figuiere <hub@figuiere.net>
|
| 872 |
+
|
| 873 |
+
* libexif/exif-mem.h, libexif/exif-loader.h: More documentation
|
| 874 |
+
|
| 875 |
+
2006-01-03 Hubert Figuiere <hub@figuiere.net>
|
| 876 |
+
|
| 877 |
+
* configure.ac: fix once for all the versioning.
|
| 878 |
+
No actual version change has taken place this time.
|
| 879 |
+
|
| 880 |
+
2006-01-02 Hubert Figuiere <hub@figuiere.net>
|
| 881 |
+
|
| 882 |
+
* libexif/Makefile.am (libexif_la_DEPENDENCIES): depends
|
| 883 |
+
on the .sym file. Need to relink if modified.
|
| 884 |
+
|
| 885 |
+
2005-12-27 Lutz Mueller <lutz@topfrose.de>
|
| 886 |
+
|
| 887 |
+
* NEWS
|
| 888 |
+
* configure.ac: We're now working on version 0.6.14.
|
| 889 |
+
|
| 890 |
+
2005-12-27 Lutz Mueller <lutz@topfrose.de>
|
| 891 |
+
|
| 892 |
+
* test/Makefile.am: Remove the SOURCES variables - they are not necessary.
|
| 893 |
+
|
| 894 |
+
2005-10-24 Jan Patera <patera@users.sourceforge.net>
|
| 895 |
+
|
| 896 |
+
* libexif/Canon/mnote-canon-entry.c: Don't check size of MNOTE_CANON_TAG_OWNER
|
| 897 |
+
and MNOTE_CANON_TAG_FIRMWARE - there can be many different values.
|
| 898 |
+
|
| 899 |
+
2005-08-27 Jan Patera <patera@users.sourceforge.net>
|
| 900 |
+
|
| 901 |
+
* Canon mnote: Both parts of Settings had indices shifted by 1.
|
| 902 |
+
entries[] must have secondary sorting by value which is unsigned.
|
| 903 |
+
Wrong # of items in Settings: reading beyond allocated memory, crashes.
|
| 904 |
+
|
| 905 |
+
2005-08-23 Lutz Mueller <lutz@users.sourceforge.net>
|
| 906 |
+
|
| 907 |
+
Some work on canon maker notes. Entries that contain several different
|
| 908 |
+
values now expand to different entries.
|
| 909 |
+
|
| 910 |
+
2005-08-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 911 |
+
|
| 912 |
+
Patch by Jakub Bogusz <qboosh@pld-linux.org>, related to translation.
|
| 913 |
+
|
| 914 |
+
2005-08-14 Jan Patera <patera@users.sourceforge.net>
|
| 915 |
+
|
| 916 |
+
* libexif/exif-entry.c: Added value 2 of EXIF_TAG_COLOR_SPACE
|
| 917 |
+
patch #1253625 by Ross Burton - burtonini
|
| 918 |
+
|
| 919 |
+
2005-07-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 920 |
+
|
| 921 |
+
* doc/Makefile.am: Make distcheck work again.
|
| 922 |
+
|
| 923 |
+
2005-07-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 924 |
+
|
| 925 |
+
* libexif/exif-loader.c:
|
| 926 |
+
* po/de.po:
|
| 927 |
+
* po/fr.po:
|
| 928 |
+
* po/es.po: Added license.
|
| 929 |
+
|
| 930 |
+
2005-07-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 931 |
+
|
| 932 |
+
* libexif/exif-data.c: Prevent infinite recursions (#1196787).
|
| 933 |
+
|
| 934 |
+
2005-06-19 Hubert Figuiere <hfiguiere@teaser.fr>
|
| 935 |
+
|
| 936 |
+
* test/Makefile.am (check_PROGRAMS): added check for make check
|
| 937 |
+
|
| 938 |
+
2005-05-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 939 |
+
|
| 940 |
+
* libexif/exif-data.c (exif_data_fix): Don't create EXIF_IFD_1 if no
|
| 941 |
+
thumbnail data is available.
|
| 942 |
+
|
| 943 |
+
2005-04-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 944 |
+
|
| 945 |
+
* test/test-mem.c: Show how to create EXIF data.
|
| 946 |
+
* README: New section USAGE.
|
| 947 |
+
|
| 948 |
+
2005-04-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 949 |
+
|
| 950 |
+
* libexif/exif-data-type.h: New
|
| 951 |
+
* libexif/*: Lots of changes to make it possible to validate data against
|
| 952 |
+
the specification.
|
| 953 |
+
|
| 954 |
+
2005-04-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 955 |
+
|
| 956 |
+
* libexif/exif-data.c (exif_data_load_data_content): Add a special case.
|
| 957 |
+
|
| 958 |
+
2005-04-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 959 |
+
|
| 960 |
+
* libexif/exif-data.c (exif_data_load_data_content): Better check for
|
| 961 |
+
validity of tags.
|
| 962 |
+
|
| 963 |
+
2005-04-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 964 |
+
|
| 965 |
+
* libexif/exif-entry.c (exif_entry_fix): Some day, we'll get this right.
|
| 966 |
+
|
| 967 |
+
2005-04-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 968 |
+
|
| 969 |
+
* libexif/exif-entry.h
|
| 970 |
+
* libexif/exif-content.h: New convenience functions/macros.
|
| 971 |
+
|
| 972 |
+
2005-04-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 973 |
+
|
| 974 |
+
* configure.ac: AGE = 1
|
| 975 |
+
* libexif/exif-entry.c (exif_entry_fix): Add a break to avoid unnecessary
|
| 976 |
+
checks.
|
| 977 |
+
|
| 978 |
+
2005-04-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 979 |
+
|
| 980 |
+
* libexif/exif-entry.c (exif_entry_fix): Leave ' ' untouched, too.
|
| 981 |
+
|
| 982 |
+
2005-04-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 983 |
+
|
| 984 |
+
* libexif/exif-tag.[c,h] (exif_tag_[name,title,description]_in_ifd): New.
|
| 985 |
+
|
| 986 |
+
2005-04-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 987 |
+
|
| 988 |
+
* libexif/exif-data.c (exif_entry_fix): '\0...' as USER_COMMENT is ok, too.
|
| 989 |
+
|
| 990 |
+
2005-04-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 991 |
+
|
| 992 |
+
* libexif/exif-data.c: Make it compile again.
|
| 993 |
+
|
| 994 |
+
2005-04-24 Lutz Mueller <lutz@users.sourceforge.net>
|
| 995 |
+
|
| 996 |
+
* exif-data.[c,h] (exif_data_option_get_[name,description]),
|
| 997 |
+
(exif_data_[set,unset]_option): New
|
| 998 |
+
* exif-tag.[c,h]: EXIF_TAG_GAMMA: New.
|
| 999 |
+
* exif-entry.c: (exif_entry_fix) Accept empty entries.
|
| 1000 |
+
|
| 1001 |
+
2005-04-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1002 |
+
|
| 1003 |
+
Submitted by Hongli Lai <h.lai@chello.nl>:
|
| 1004 |
+
|
| 1005 |
+
* configure.ac: CURRENT needs only to be increased on changes or
|
| 1006 |
+
removals, not additions.
|
| 1007 |
+
|
| 1008 |
+
2005-03-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1009 |
+
|
| 1010 |
+
* libexif/exif-data.c: Convert some DEBUG messages to CORRUPT_DATA.
|
| 1011 |
+
|
| 1012 |
+
2005-03-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1013 |
+
|
| 1014 |
+
* libjpeg: Removed.
|
| 1015 |
+
* README
|
| 1016 |
+
* Makefile.am
|
| 1017 |
+
* configure.in
|
| 1018 |
+
* libexif/exif-loader.c
|
| 1019 |
+
* libexif/exif-data.c: Remove references to libjpeg.
|
| 1020 |
+
* test/test-tree.c: Removed.
|
| 1021 |
+
* test/Makefile.am: Remove test-tree
|
| 1022 |
+
|
| 1023 |
+
2005-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1024 |
+
|
| 1025 |
+
* libexif/exif-entry.c (exif_entry_get_value): Fix tag COPYRIGHT.
|
| 1026 |
+
|
| 1027 |
+
2005-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1028 |
+
|
| 1029 |
+
* libexif/exif-data.c (exif_data_save_data_content): Use qsort.
|
| 1030 |
+
|
| 1031 |
+
2005-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1032 |
+
|
| 1033 |
+
* libjpeg/jpeg-data.c: Fix #1054322.
|
| 1034 |
+
|
| 1035 |
+
2005-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1036 |
+
|
| 1037 |
+
* libexif/exif-entry.c: Fix #1051994.
|
| 1038 |
+
|
| 1039 |
+
2005-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1040 |
+
|
| 1041 |
+
* libexif/exif-entry.c: Marked some strings for translation. Fix #803191.
|
| 1042 |
+
|
| 1043 |
+
2005-03-13 Jan Patera <patera@users.sourceforge.net>
|
| 1044 |
+
|
| 1045 |
+
* libexif/exif-entry.c (exif_entry_fix): Update also e->components
|
| 1046 |
+
|
| 1047 |
+
2005-03-13 Jan Patera <patera@users.sourceforge.net>
|
| 1048 |
+
|
| 1049 |
+
* libexif/exif-data.c: critical fix of 2005-03-09 change: saving
|
| 1050 |
+
IFD containing data of odd length was causing memory corruption
|
| 1051 |
+
and total lost of entire EXIF data
|
| 1052 |
+
|
| 1053 |
+
2005-03-13 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
| 1054 |
+
|
| 1055 |
+
* NEWS: Release 0.6.12
|
| 1056 |
+
|
| 1057 |
+
2005-03-12 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
| 1058 |
+
|
| 1059 |
+
* po/de.po: Partial translation update
|
| 1060 |
+
|
| 1061 |
+
2005-03-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1062 |
+
|
| 1063 |
+
Spotted by Jan Patera <patera@users.sourceforge.net>:
|
| 1064 |
+
|
| 1065 |
+
* test/test-mem.c: Small fix.
|
| 1066 |
+
|
| 1067 |
+
2005-03-10 Jan Patera <patera@users.sourceforge.net>
|
| 1068 |
+
|
| 1069 |
+
* libexif/exif-utils.*,exif-entry.c: Full support of EXIF_FORMAT_SSHORT
|
| 1070 |
+
(used by Nikon & Olympus mnote tags)
|
| 1071 |
+
|
| 1072 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1073 |
+
|
| 1074 |
+
* libexif/exif-utils.c (exif_array_set_byte_order): Return if an invalid
|
| 1075 |
+
format is supplied.
|
| 1076 |
+
|
| 1077 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1078 |
+
|
| 1079 |
+
* libexif/exif-entry.c (exif_entry_fix): Update e->size.
|
| 1080 |
+
|
| 1081 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1082 |
+
|
| 1083 |
+
* libexif/exif-data.c (exif_data_save_data_content): Update comment that
|
| 1084 |
+
this code does not honor the specification yet.
|
| 1085 |
+
|
| 1086 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1087 |
+
|
| 1088 |
+
* libexif/exif-data.c (exif_data_save_data_content): Save entries in
|
| 1089 |
+
the correct order.
|
| 1090 |
+
|
| 1091 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1092 |
+
|
| 1093 |
+
* test/test-mem.c: Write size to loader to make the test work again.
|
| 1094 |
+
|
| 1095 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1096 |
+
|
| 1097 |
+
* libexif/canon/exif-mnote-data-canon.c (exif_mnote_data_canon_save):
|
| 1098 |
+
Ensure even offsets.
|
| 1099 |
+
|
| 1100 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1101 |
+
|
| 1102 |
+
* libexif/exif-data.c (exif_data_save_data_entry): According to the TIFF
|
| 1103 |
+
specification, the offset must be an even number. If we need to introduce
|
| 1104 |
+
a padding byte, we set it to 0.
|
| 1105 |
+
|
| 1106 |
+
2005-03-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1107 |
+
|
| 1108 |
+
* libexif/exif-utils.[c,h] (exif_array_set_byte_order): New function.
|
| 1109 |
+
* libexif/exif-data.c
|
| 1110 |
+
* libexif/canon/exif-mnote-data-canon.c
|
| 1111 |
+
* libexif/olympus/exif-mnote-data-olympus.c
|
| 1112 |
+
* libexif/pentax/exif-mnote-data-pentax.c: Use new function.
|
| 1113 |
+
|
| 1114 |
+
2005-03-09 Jan Patera <patera@users.sourceforge.net>
|
| 1115 |
+
|
| 1116 |
+
* exif_data.c: Final fix of Ubuntu Security Notice USN-91-1
|
| 1117 |
+
https://bugzilla.ubuntulinux.org/show_bug.cgi?id=7152
|
| 1118 |
+
(CAN-2005-0664)
|
| 1119 |
+
|
| 1120 |
+
2005-02-08 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
| 1121 |
+
|
| 1122 |
+
* autogen.sh: Updated build system:
|
| 1123 |
+
- doesn't require gettextize any more (using autopoint now)
|
| 1124 |
+
- uses all the built-in magic from autoreconf
|
| 1125 |
+
* configure.in, */Makefile.am: Build variable cleanup:
|
| 1126 |
+
- use common definition for AM_CFLAGS (remove INCLUDES in
|
| 1127 |
+
**/Makefile.am)
|
| 1128 |
+
- define LIBEXIF_LOCALEDIR and LIBMNOTE_LOCALEDIR in config.h
|
| 1129 |
+
- allow user to add CFLAGS at ./configure time by setting CFLAGS
|
| 1130 |
+
- add intl/ to include path only if building the included
|
| 1131 |
+
libintl
|
| 1132 |
+
- check whether -lm is actually required. This enables
|
| 1133 |
+
crosscompilation for windows targets:
|
| 1134 |
+
./configure --host=i586-mingw32msvc --disable-nls
|
| 1135 |
+
* m4/gp-config-msg.m4, m4/gp-gettext-hack.m4: New macros
|
| 1136 |
+
|
| 1137 |
+
2004-12-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1138 |
+
|
| 1139 |
+
* libexif/exif-loader.c: Work towards a non-recursive version of
|
| 1140 |
+
(exif_loader_write).
|
| 1141 |
+
|
| 1142 |
+
2004-12-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1143 |
+
|
| 1144 |
+
Lars Ellenberg <l.g.e@web.de> fixed a bug that I introduced
|
| 1145 |
+
in the last commit:
|
| 1146 |
+
|
| 1147 |
+
* libexif/exif-loader.c: Don't substract 2 bytes twice.
|
| 1148 |
+
|
| 1149 |
+
2004-12-12 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1150 |
+
|
| 1151 |
+
Pointed out by Lars Ellenberg <l.g.e@web.de>:
|
| 1152 |
+
|
| 1153 |
+
* libexif/exif-loader.c: Honor indirect offsets in FUJI_RAW-files.
|
| 1154 |
+
Don't perform unnecessary checks for known data formats.
|
| 1155 |
+
|
| 1156 |
+
2004-12-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1157 |
+
|
| 1158 |
+
Inspired by suggestions from Lars Ellenberg <l.g.e@web.de>:
|
| 1159 |
+
|
| 1160 |
+
* libexif/exif-data.c: Fix spelling error.
|
| 1161 |
+
* libexif/exif-loader.c (exif_loader_write): Rewrite logic to
|
| 1162 |
+
make the loader handle more file types.
|
| 1163 |
+
|
| 1164 |
+
2004-12-08 Jan Patera <patera@users.sourceforge.net>
|
| 1165 |
+
|
| 1166 |
+
* libexif/exif-entry.c: Data format of EXIF_TAG_USER_COMMENT:
|
| 1167 |
+
Some packages like Canon ZoomBrowser EX 4.5 store only
|
| 1168 |
+
one zero byte followed by 7 bytes of rubbish
|
| 1169 |
+
|
| 1170 |
+
2004-11-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1171 |
+
|
| 1172 |
+
* libexif/exif-data.c: Make the last commit actually work.
|
| 1173 |
+
|
| 1174 |
+
2004-11-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1175 |
+
|
| 1176 |
+
* libexif/exif-content.c: Complain if the same tag is added twice
|
| 1177 |
+
to an IFD. Suggestion by Angela Wrobel.
|
| 1178 |
+
|
| 1179 |
+
2004-11-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1180 |
+
|
| 1181 |
+
* libexif/exif-data.c: Additional debugging message if
|
| 1182 |
+
specification is violated.
|
| 1183 |
+
|
| 1184 |
+
2004-11-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1185 |
+
|
| 1186 |
+
* libexif/*: Plug another few memleaks. All found by Angala Wrobel.
|
| 1187 |
+
|
| 1188 |
+
2004-11-12 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1189 |
+
|
| 1190 |
+
* libexif/exif-data.c: Clean up handling of MakerNote tags.
|
| 1191 |
+
|
| 1192 |
+
2004-11-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1193 |
+
|
| 1194 |
+
* libexif/exif-mnote-data.c: Plug yet another memory leak.
|
| 1195 |
+
Detected by Angela Wrobel.
|
| 1196 |
+
|
| 1197 |
+
2004-11-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1198 |
+
|
| 1199 |
+
* libexif/exif-log.c: Plug another memory leak. Detected by
|
| 1200 |
+
Angela Wrobel.
|
| 1201 |
+
|
| 1202 |
+
2004-11-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1203 |
+
|
| 1204 |
+
* libexif/canon/exif-mnote-data-canon.c: Do not crash on strange
|
| 1205 |
+
data. Pointed out by Angela Wrobel.
|
| 1206 |
+
|
| 1207 |
+
2004-11-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1208 |
+
|
| 1209 |
+
* libexif/*: Replace another few realloc by exif_mem_realloc.
|
| 1210 |
+
Pointed out by Angela Wrobel.
|
| 1211 |
+
|
| 1212 |
+
2004-11-10 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1213 |
+
|
| 1214 |
+
* libexif/*.c: Change #include "" to #include <>.
|
| 1215 |
+
* Makefile.am:
|
| 1216 |
+
* exif-result.h: Removed.
|
| 1217 |
+
|
| 1218 |
+
2004-11-10 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1219 |
+
|
| 1220 |
+
* libexif/exif-tag.[c,h] (exif_tag_from_name): New. Suggested by
|
| 1221 |
+
Angela Wrobel.
|
| 1222 |
+
|
| 1223 |
+
2004-11-10 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1224 |
+
|
| 1225 |
+
* libexif/exif-data.c (exif_data_free): Fix memleak found by
|
| 1226 |
+
Angela Wrobel.
|
| 1227 |
+
* contrib/watcom: Updated files contributed by Angela Wrobel.
|
| 1228 |
+
|
| 1229 |
+
2004-11-03 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1230 |
+
|
| 1231 |
+
* libexif/exif-format.c: More translatable strings.
|
| 1232 |
+
|
| 1233 |
+
2004-11-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1234 |
+
|
| 1235 |
+
* libexif/exif-entry.c (exif_entry_fix): Detect more wrong stuff.
|
| 1236 |
+
* libexif/exif-data.c: Detect recursive calls.
|
| 1237 |
+
|
| 1238 |
+
2004-11-02 Jan Patera <patera@users.sourceforge.net>
|
| 1239 |
+
|
| 1240 |
+
* libexif/exif-entry.c: added LZW
|
| 1241 |
+
* libexif/exif-tag.*: added few tags used by .NEF
|
| 1242 |
+
* libexif/exif-data.c: logging unknown tags
|
| 1243 |
+
|
| 1244 |
+
2004-10-20 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1245 |
+
|
| 1246 |
+
* Makefile.am: Add intl
|
| 1247 |
+
* configure.in: Add intl/Makefile. Now "make distcheck" works.
|
| 1248 |
+
|
| 1249 |
+
2004-10-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1250 |
+
|
| 1251 |
+
Patch by Krisztian VASAS <iron@ironiq.hu>:
|
| 1252 |
+
|
| 1253 |
+
* configure.in: Create po/Makefile.in from po/Makefile.in.in
|
| 1254 |
+
|
| 1255 |
+
2004-10-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1256 |
+
|
| 1257 |
+
* configure.in: We are now working on version 0.6.12.
|
| 1258 |
+
|
| 1259 |
+
2004-10-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1260 |
+
|
| 1261 |
+
* configure.in: set CURRENT to 12. There have been quite a few
|
| 1262 |
+
additions to the header files.
|
| 1263 |
+
|
| 1264 |
+
2004-10-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1265 |
+
|
| 1266 |
+
Martin Willers <willers@xm-arts.de> found an off-by-one error:
|
| 1267 |
+
|
| 1268 |
+
* libexif/exif-entry.c: libexif forget to add 1
|
| 1269 |
+
to tm_mon from struct tm
|
| 1270 |
+
|
| 1271 |
+
2004-10-05 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1272 |
+
|
| 1273 |
+
* libexif/exif-data.c: Support for WatCom. Convert debugging code
|
| 1274 |
+
to exif-log API.
|
| 1275 |
+
* libexif/i18n.h: Support for WatCom. Patch by Angela Wrobel.
|
| 1276 |
+
|
| 1277 |
+
2004-10-05 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1278 |
+
|
| 1279 |
+
* contrib/watcom: Files contributed by Angela Wrobel.
|
| 1280 |
+
|
| 1281 |
+
2004-10-04 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1282 |
+
|
| 1283 |
+
* libexif/exif-mem.h: Documentation.
|
| 1284 |
+
|
| 1285 |
+
2004-10-04 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1286 |
+
|
| 1287 |
+
* libexif/*: Finish replaceable memory-management.
|
| 1288 |
+
|
| 1289 |
+
2004-10-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1290 |
+
|
| 1291 |
+
* libexif/exif-mem.[c,h]: New. First attempt to offer out-sourcing
|
| 1292 |
+
of memory management.
|
| 1293 |
+
|
| 1294 |
+
2004-10-01 Jan Patera <patera@users.sourceforge.net>
|
| 1295 |
+
|
| 1296 |
+
* libexif/exif-entry.c: exif_entry_fix:
|
| 1297 |
+
exif_set_short: 2nd & 3rd args swapped
|
| 1298 |
+
|
| 1299 |
+
2004-09-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1300 |
+
|
| 1301 |
+
* libexif/exif-entry.c (exif_entry_fix): Enhance.
|
| 1302 |
+
|
| 1303 |
+
2004-09-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1304 |
+
|
| 1305 |
+
* libexif/exif-entry.c (exif_entry_fix): New. Fixes any violations
|
| 1306 |
+
against the standard.
|
| 1307 |
+
|
| 1308 |
+
2004-09-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1309 |
+
|
| 1310 |
+
* libexif/exif-entry.c: Kill some warnings. Read as much from the
|
| 1311 |
+
UserComment tag as possible (as suggested by Angela Wrobel).
|
| 1312 |
+
|
| 1313 |
+
2004-09-15 Jan Patera <patera@users.sourceforge.net>
|
| 1314 |
+
|
| 1315 |
+
* libexif/exif-loader.c: int -> unsigned int.
|
| 1316 |
+
* libexif/olympus/mnote-olympus-entry.c: typecast.
|
| 1317 |
+
Both changes made to avoid compiler warnings.
|
| 1318 |
+
|
| 1319 |
+
2004-09-12 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1320 |
+
|
| 1321 |
+
* ???: Some format string fixes, wrong argument list fixed, format
|
| 1322 |
+
string problems avoided.
|
| 1323 |
+
(Patch by marcusmeissner@users.sourceforge.net)
|
| 1324 |
+
|
| 1325 |
+
2004-09-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1326 |
+
|
| 1327 |
+
* configure.in: Remove "([external])" after AM_GNU_GETTEXT as it
|
| 1328 |
+
doesn't work for David MacMahon <davidm@astro.berkeley.edu>.
|
| 1329 |
+
* libexif/exif-log.[c,h]: Provide some standard messages and titles.
|
| 1330 |
+
* configure.in: Increment version as interfaces have been added.
|
| 1331 |
+
|
| 1332 |
+
2004-09-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1333 |
+
|
| 1334 |
+
* libexif/exif-entry.c: Change comment to point to specification.
|
| 1335 |
+
|
| 1336 |
+
2004-09-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1337 |
+
|
| 1338 |
+
* libexif/exif-entry.c: Redirect error messages to the logging
|
| 1339 |
+
mechanism.
|
| 1340 |
+
* libexif/exif-log.h: EXIF_LOG_CODE_CORRUPT_DATA: New.
|
| 1341 |
+
|
| 1342 |
+
2004-09-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1343 |
+
|
| 1344 |
+
* libexif/exif-loader.c
|
| 1345 |
+
* libexif/exif-data.c: Replace a couple of calls to malloc by
|
| 1346 |
+
calls to calloc.
|
| 1347 |
+
|
| 1348 |
+
2004-09-07 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1349 |
+
|
| 1350 |
+
* libexif/exif-entry.c: Use calloc. Hint by Jan Patera
|
| 1351 |
+
<patera@pictview.com>.
|
| 1352 |
+
|
| 1353 |
+
2004-09-07 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1354 |
+
|
| 1355 |
+
* libexif/olympus
|
| 1356 |
+
* libexif/pentax: Fix typo and wrong logic introduced during my
|
| 1357 |
+
last changes. Thanks to Jan Patera
|
| 1358 |
+
<patera@pictview.com> for keeping an eye on me.
|
| 1359 |
+
|
| 1360 |
+
2004-09-07 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1361 |
+
|
| 1362 |
+
* libexif/olympus
|
| 1363 |
+
* libexif/pentax
|
| 1364 |
+
* libexif/canon: Correctly return names, titles and descriptions of
|
| 1365 |
+
tages. Pointed out by Angela Wrobel.
|
| 1366 |
+
|
| 1367 |
+
2004-09-07 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1368 |
+
|
| 1369 |
+
* libexif/exif-entry.c: More guards against malloc returning NULL.
|
| 1370 |
+
Problem spotted by Angela Wrobel.
|
| 1371 |
+
|
| 1372 |
+
2004-09-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1373 |
+
|
| 1374 |
+
* libexif/exif-entry.c: First part of a patch to be less strict on
|
| 1375 |
+
the USER_COMMENT-tag. Submitted by Angela Wrobel, slightly adapted.
|
| 1376 |
+
|
| 1377 |
+
2004-09-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1378 |
+
|
| 1379 |
+
* libexif/exif-tag.c: First ideas on how to support generation of
|
| 1380 |
+
mandatory exif tags for a new image.
|
| 1381 |
+
|
| 1382 |
+
2004-09-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1383 |
+
|
| 1384 |
+
Suggestion by Angela Wrobel (http://www.wrobelnet.de/contact.html):
|
| 1385 |
+
|
| 1386 |
+
* libexif/pentax:
|
| 1387 |
+
* libexif/olympus: Improve user experience by removing information
|
| 1388 |
+
from the output that was only intended for developers.
|
| 1389 |
+
|
| 1390 |
+
2004-08-31 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1391 |
+
|
| 1392 |
+
* test/test-mem.c: Plug some memory leaks. Suggested by Angela Wrobel
|
| 1393 |
+
(http://www.wrobelnet.de/contact.html).
|
| 1394 |
+
|
| 1395 |
+
2004-08-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1396 |
+
|
| 1397 |
+
* configure.in: 0.6.10 -> 0.6.11, as libexif-0.6.10 has just been
|
| 1398 |
+
released.
|
| 1399 |
+
|
| 1400 |
+
2004-08-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1401 |
+
|
| 1402 |
+
Achim Bohnet found a spelling mistake:
|
| 1403 |
+
|
| 1404 |
+
* libexif/exif-tag.c: 'colums' -> 'columns'
|
| 1405 |
+
|
| 1406 |
+
2004-08-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1407 |
+
|
| 1408 |
+
Suggestions from Angela Wrobel (http://www.wrobelnet.de/contact.html)
|
| 1409 |
+
|
| 1410 |
+
* libexif/exif-entry.c
|
| 1411 |
+
* libexif/exif-loader.c
|
| 1412 |
+
* libexif/exif-utils.c
|
| 1413 |
+
* olympus/exif-mnote-data-olympus.c
|
| 1414 |
+
* pentax/exif-mnote-data-pentax.c: Check if malloc returned NULL.
|
| 1415 |
+
|
| 1416 |
+
2004-07-13 Jan Patera <patera@users.sourceforge.net>
|
| 1417 |
+
|
| 1418 |
+
* libexif/exif-mnote-*.*: added exif_mnote_data_get_id()
|
| 1419 |
+
returning actual mnote entry tag ID (suggested by Serge
|
| 1420 |
+
Droz <serge.droz@psi.ch>)
|
| 1421 |
+
|
| 1422 |
+
2004-06-23 Serge Droz <serge.droz@psi.ch>
|
| 1423 |
+
|
| 1424 |
+
(committed by Lutz Mueller <lutz@users.sourceforge.net>)
|
| 1425 |
+
|
| 1426 |
+
* libexif/olympus/mnote-olympus-entry.c: Reapply Jan Patera's
|
| 1427 |
+
change.
|
| 1428 |
+
|
| 1429 |
+
2004-06-22 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1430 |
+
|
| 1431 |
+
* libexif/olympus/mnote-olympus-entry.c: Correct the usage of
|
| 1432 |
+
strncat. Fix pointed out by Serge Droz <serge.droz@psi.ch>.
|
| 1433 |
+
|
| 1434 |
+
2004-06-22 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1435 |
+
|
| 1436 |
+
* libexif/olympus/mnote-olympus-tag.[c,h]: New tags discovered by
|
| 1437 |
+
Serge Droz <serge.droz@psi.ch>.
|
| 1438 |
+
|
| 1439 |
+
2004-06-15 Jan Patera <patera@users.sourceforge.net>
|
| 1440 |
+
|
| 1441 |
+
* libexif/olympus/mnote-olympus-entry.c: MNOTE_OLYMPUS_TAG_INFO
|
| 1442 |
+
|
| 1443 |
+
2004-06-06 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1444 |
+
|
| 1445 |
+
* libexif/olympus/exif-mnote-data-olympus.c: More documentation,
|
| 1446 |
+
additional case (Nikon, 02 0a 00).
|
| 1447 |
+
* Makefile.am: s/LIBMNOTE/LIBEXIF
|
| 1448 |
+
|
| 1449 |
+
2004-05-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1450 |
+
|
| 1451 |
+
* configure.in: 0.6.10 as 0.6.9 has just been released.
|
| 1452 |
+
|
| 1453 |
+
2004-05-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1454 |
+
|
| 1455 |
+
* libexif/exif-entry.c: Jan Patera pointed me to the fact that
|
| 1456 |
+
last change is pointless.
|
| 1457 |
+
|
| 1458 |
+
2004-05-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1459 |
+
|
| 1460 |
+
* libexif/exif-entry.c: According to Ralf Holzer <rholzer@cmu.edu>,
|
| 1461 |
+
the user comment field does not have to be NULL terminated.
|
| 1462 |
+
|
| 1463 |
+
2004-05-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1464 |
+
|
| 1465 |
+
* libexif/olympus/mnote-olympus-entry.c: Print bytes if tag is not
|
| 1466 |
+
known.
|
| 1467 |
+
|
| 1468 |
+
2004-05-24 Jan Patera <patera@users.sourceforge.net>
|
| 1469 |
+
|
| 1470 |
+
* libjpeg/jpeg-data.[c,h]: jpeg_data_append_section changed
|
| 1471 |
+
from static to public
|
| 1472 |
+
* libexif/olumpus/mnote-olympus-entry.c: support of several
|
| 1473 |
+
known but previously not supported Nikon (& 1 Olympus) tags
|
| 1474 |
+
* libexif/exif-entry.c: rational values printed as %2.2f and not %i/%i
|
| 1475 |
+
|
| 1476 |
+
2004-05-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1477 |
+
|
| 1478 |
+
* libexif/exif-log.[c,h]: New. Proposal for handling of debugging
|
| 1479 |
+
messages.
|
| 1480 |
+
|
| 1481 |
+
2004-05-13 Jan Patera <patera@users.sourceforge.net>
|
| 1482 |
+
|
| 1483 |
+
* libexif/exif-data.c: Fill tag data with zeros on save even
|
| 1484 |
+
if 0 components (buggy Kodak-210)
|
| 1485 |
+
|
| 1486 |
+
2004-05-12 Jan Patera <patera@users.sourceforge.net>
|
| 1487 |
+
|
| 1488 |
+
* libexif/exif-utils.h: definition of MIN
|
| 1489 |
+
* libexif/pentax/mnote-pentax-entry.c: min -> MIN
|
| 1490 |
+
(found by Serge Droz <serge.droz@psi.ch>)
|
| 1491 |
+
|
| 1492 |
+
2004-05-11 Jan Patera <patera@users.sourceforge.net>
|
| 1493 |
+
|
| 1494 |
+
* libjpeg/jpeg-data.c: memory leak in jpeg_data_set_exif_data,
|
| 1495 |
+
return type of jpeg_data_save_file
|
| 1496 |
+
* libexif/exif-entry.c: proper mnote size on save
|
| 1497 |
+
* libexif/olympus: saving Nikon mnote
|
| 1498 |
+
|
| 1499 |
+
2004-05-10 Jan Patera <patera@users.sourceforge.net>
|
| 1500 |
+
|
| 1501 |
+
* libexif: Support of Nikon maker note
|
| 1502 |
+
|
| 1503 |
+
2004-05-07 Jan Patera <patera@users.sourceforge.net>
|
| 1504 |
+
|
| 1505 |
+
* libexif/exif-entry.c: fix of EXIF_TAG_COLOR_SPACE,
|
| 1506 |
+
value 9 of EXIF_TAG_FLASH.
|
| 1507 |
+
* libexif/exif-entry.c: Fix of bug #937505 submitted by Hubert
|
| 1508 |
+
Verstraete <hubs@users.sourceforge>: value 0x0058 of
|
| 1509 |
+
EXIF_TAG_FLASH.
|
| 1510 |
+
|
| 1511 |
+
2004-05-04 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1512 |
+
|
| 1513 |
+
* libexif/olympus: Make it support Nikon maker notes, too.
|
| 1514 |
+
Code based on work by Serge Droz <serge.droz@psi.ch>.
|
| 1515 |
+
|
| 1516 |
+
2004-05-03 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1517 |
+
|
| 1518 |
+
* libexif/exif-entry.c (exif_entry_initialize):
|
| 1519 |
+
Added EXIF_TAG_PIXEL_[X,Y]_DIMENSION (thanks to Antonio Scuri
|
| 1520 |
+
<scuri@tecgraf.puc-rio.br>).
|
| 1521 |
+
|
| 1522 |
+
2004-05-03 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1523 |
+
|
| 1524 |
+
* libexif/exif-tag.c: Hide some functions there that have been
|
| 1525 |
+
requested by Antonio Scuri <scuri@tecgraf.puc-rio.br>.
|
| 1526 |
+
|
| 1527 |
+
2004-05-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1528 |
+
|
| 1529 |
+
* configure.in: GETTEXT_PACKAGE=${PACKAGE}-${LIBEXIF_CURRENT}
|
| 1530 |
+
on request of Ilya Konstantinov <future@shiny.co.il>
|
| 1531 |
+
(Debian needs it).
|
| 1532 |
+
|
| 1533 |
+
2004-05-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1534 |
+
|
| 1535 |
+
* libjpeg/jpeg-marker.h: No implicit enum declaration. Seen by
|
| 1536 |
+
Antonio Scuri <scuri@tecgraf.puc-rio.br>.
|
| 1537 |
+
|
| 1538 |
+
2004-04-04 Lutz Mueller lutz@users.sourceforge.net
|
| 1539 |
+
|
| 1540 |
+
* libexif/exif-data.c: If we don't know a tag we are going to parse,
|
| 1541 |
+
stop loading. This should fix bug #138238.
|
| 1542 |
+
|
| 1543 |
+
2004-04-02 Jan Patera <patera@users.sourceforge.net>
|
| 1544 |
+
|
| 1545 |
+
* libexif/pentax/exif-mnote-data-pentax.c: correct search for values
|
| 1546 |
+
|
| 1547 |
+
2004-03-19 Joerg Hoh <hohjg@users.sourceforge.net>
|
| 1548 |
+
* libexif/olympus/exif-mnote-data-olympus.c: code
|
| 1549 |
+
simplification
|
| 1550 |
+
|
| 1551 |
+
2004-03-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1552 |
+
|
| 1553 |
+
* libexif/pentax/exif-mnote-data-pentax.c: Another suggestion by
|
| 1554 |
+
Joerg Hoh <joerg@devone.org>.
|
| 1555 |
+
|
| 1556 |
+
2004-03-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1557 |
+
|
| 1558 |
+
* libexif/pentax/mnote-pentax-entry.c: Joerg Hoh <joerg@devone.org>
|
| 1559 |
+
did it again.
|
| 1560 |
+
|
| 1561 |
+
2004-03-03 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1562 |
+
|
| 1563 |
+
* libexif/exif-entry.c: Patch by Joerg Hoh <joerg@devone.org>,
|
| 1564 |
+
enhanced by myself.
|
| 1565 |
+
|
| 1566 |
+
2004-03-03 Jan Patera <patera@users.sourceforge.net>
|
| 1567 |
+
|
| 1568 |
+
* libexif/exif-entry.c: C-compilability & fix of the 2004/03/02 code
|
| 1569 |
+
|
| 1570 |
+
2004-03-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1571 |
+
|
| 1572 |
+
* configure.in: No version on GETTEXT_PACKAGE. Requested by
|
| 1573 |
+
gernot@bigpond.com.
|
| 1574 |
+
* libexif/exif-entry.c: Some formatting.
|
| 1575 |
+
|
| 1576 |
+
2004-03-02 Joerg Hoh<joerg@devone.org>
|
| 1577 |
+
|
| 1578 |
+
* libexif/exif-entry.c: moved redundant code into a static structure
|
| 1579 |
+
|
| 1580 |
+
2004-03-01 Jan Patera <patera@users.sourceforge.net>
|
| 1581 |
+
|
| 1582 |
+
* libexif/pentax/exif-mnote-data-pentax.c: Fixed flipped inequation
|
| 1583 |
+
causing all value requests to be denied as invalid
|
| 1584 |
+
|
| 1585 |
+
2004-02-02 Jan Patera <patera@users.sourceforge.net>
|
| 1586 |
+
|
| 1587 |
+
* libexif/exif-loader.c: propper skipping of JPEG_MARKER_COM when
|
| 1588 |
+
searching for JPEG_MARKER_APP1 with exif data
|
| 1589 |
+
|
| 1590 |
+
2004-01-19 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1591 |
+
|
| 1592 |
+
* contrib/c++: Files contributed by Hans Meine <hans_meine@gmx.net>.
|
| 1593 |
+
Completely untested.
|
| 1594 |
+
|
| 1595 |
+
2004-01-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1596 |
+
|
| 1597 |
+
* libexif/exif-entry.c (exif_entry_get_value_brief): merge into
|
| 1598 |
+
(exif_entry_get_value) and remove.
|
| 1599 |
+
* tests/test-mnote.c: Make it compile again.
|
| 1600 |
+
* tests/test-value.c: New.
|
| 1601 |
+
* configure.in: API-changes -> increment version.
|
| 1602 |
+
|
| 1603 |
+
2004-01-07 Jan Patera <patera@users.sourceforge.net>
|
| 1604 |
+
|
| 1605 |
+
Thread-safety, elimination of static variables, fixes of memory
|
| 1606 |
+
corruption (writing beyond provided space), no more memory leaks
|
| 1607 |
+
in mnote, 2 new args of exif_entry_get_value,
|
| 1608 |
+
exif_entry_get_value_brief, exif_mnote_data_get_value.
|
| 1609 |
+
|
| 1610 |
+
* libexif, libexif/canon, libexif/olympus, libexif/pentax
|
| 1611 |
+
|
| 1612 |
+
2003-12-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1613 |
+
|
| 1614 |
+
A couple of fixes by Jan Patera <patera@pictview.com>:
|
| 1615 |
+
|
| 1616 |
+
* libexif
|
| 1617 |
+
|
| 1618 |
+
2003-12-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1619 |
+
|
| 1620 |
+
Suggestion by Jan Patera <patera@pictview.com>:
|
| 1621 |
+
|
| 1622 |
+
* libexif/exif-entry.c: Do not read beyond e->size.
|
| 1623 |
+
|
| 1624 |
+
2003-12-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1625 |
+
|
| 1626 |
+
* libexif/olympus/mnote-olympus-entry.c: Now that EXIF_FORMAT_SSHORT
|
| 1627 |
+
is in exif-format.h, we do not need to define it any longer.
|
| 1628 |
+
|
| 1629 |
+
2003-12-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1630 |
+
|
| 1631 |
+
* libexif: Various improvements by Jan Patera <patera@pictview.com>.
|
| 1632 |
+
|
| 1633 |
+
2003-10-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1634 |
+
|
| 1635 |
+
* libexif/exif-loader.c: Handle APP13.
|
| 1636 |
+
|
| 1637 |
+
2003-10-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1638 |
+
|
| 1639 |
+
* libexif/exif-loader.c: Fix APP0-bug. Patch by Jan Patera
|
| 1640 |
+
<patera@pictview.com>.
|
| 1641 |
+
|
| 1642 |
+
2003-10-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1643 |
+
|
| 1644 |
+
* libexif/exif-data.c: Add explicit typecasts to ExifShort.
|
| 1645 |
+
Suggested by Jan Patera <patera@pictview.com>.
|
| 1646 |
+
|
| 1647 |
+
2003-10-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1648 |
+
|
| 1649 |
+
* libexif/olympus: Fix. I've got one Olympus file and this gets
|
| 1650 |
+
parsed now.
|
| 1651 |
+
|
| 1652 |
+
2003-10-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1653 |
+
|
| 1654 |
+
* libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by
|
| 1655 |
+
Jan Patera <patera@pictview.com>.
|
| 1656 |
+
|
| 1657 |
+
2003-10-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1658 |
+
|
| 1659 |
+
* libexif: Canon maker notes seem to work now (both loading and
|
| 1660 |
+
saving).
|
| 1661 |
+
|
| 1662 |
+
2003-10-27 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1663 |
+
|
| 1664 |
+
* libexif: The code now compiles and loads the canon maker note,
|
| 1665 |
+
but crashes if you query its contents.
|
| 1666 |
+
|
| 1667 |
+
2003-10-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1668 |
+
|
| 1669 |
+
* test/test-mnote.c: New.
|
| 1670 |
+
* libexif: The code now both compiles and doesn't crash,
|
| 1671 |
+
but at least the canon maker note still doesn't get parsed.
|
| 1672 |
+
|
| 1673 |
+
2003-10-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1674 |
+
|
| 1675 |
+
* configure.in
|
| 1676 |
+
* Makefile.am: Remove PO_DIRS. Otherwise, automake complains about
|
| 1677 |
+
po and intl not being in SUBDIRS
|
| 1678 |
+
|
| 1679 |
+
2003-10-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1680 |
+
|
| 1681 |
+
* libexif/olympus
|
| 1682 |
+
* libexif/canon
|
| 1683 |
+
* libexif/pentax: Merge libmnote with libexif. The code compiles but
|
| 1684 |
+
is completely untested.
|
| 1685 |
+
|
| 1686 |
+
2003-10-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1687 |
+
|
| 1688 |
+
* libexif.spec.in: Patches by Peter Bieringer <pb@bieringer.de>.
|
| 1689 |
+
|
| 1690 |
+
2003-10-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1691 |
+
|
| 1692 |
+
* libexif/exif-data.c: Patch by Jan Patera <patera@pictview.com>.
|
| 1693 |
+
|
| 1694 |
+
2003-10-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1695 |
+
|
| 1696 |
+
* libexif/exif-entry.c: Patch by Jan Patera <patera@pictview.com>.
|
| 1697 |
+
|
| 1698 |
+
2003-09-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1699 |
+
|
| 1700 |
+
* Makefile.am
|
| 1701 |
+
* configure.in: Patch #813420 by Chris Meyer <cmeyer@mac.com>.
|
| 1702 |
+
|
| 1703 |
+
2003-09-05 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1704 |
+
|
| 1705 |
+
* libjpeg/jpeg-data.c: Fix memory leak (discovered by
|
| 1706 |
+
Ralph Heidelberg <RHeidelberg@Pinnaclesys.com)
|
| 1707 |
+
|
| 1708 |
+
2003-08-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1709 |
+
|
| 1710 |
+
* libexif/exif-data.c: Fill unneeded bytes with 0. Suggestion by
|
| 1711 |
+
Roberto Costa <roberto.costa@ensta.org>.
|
| 1712 |
+
|
| 1713 |
+
2003-08-06 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1714 |
+
|
| 1715 |
+
* libexif/exif-entry.c (exif_entry_initialize): Support some more
|
| 1716 |
+
tags.
|
| 1717 |
+
* libexif/exif-tag.[c,h]: Cosmetic fix.
|
| 1718 |
+
* libexif/exif-utils.h: Do not let above cosmetic fix break the API.
|
| 1719 |
+
|
| 1720 |
+
2003-08-04 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1721 |
+
|
| 1722 |
+
* po/*.po: Updated.
|
| 1723 |
+
* Makefile.am: Add m4 and intl to SUBDIRS. automake complains
|
| 1724 |
+
otherwise.
|
| 1725 |
+
* configure.in: Add m4/Makefile. make distcheck complains otherwise.
|
| 1726 |
+
Version 0.5.12
|
| 1727 |
+
|
| 1728 |
+
2003-07-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1729 |
+
|
| 1730 |
+
* configure.in: Version 0.5.11
|
| 1731 |
+
|
| 1732 |
+
2003-07-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1733 |
+
|
| 1734 |
+
* libexif/exif-data.c: Patch by Torgeir Hansen <torgeir@trenger.ro>
|
| 1735 |
+
to prevent endless loops.
|
| 1736 |
+
|
| 1737 |
+
2003-07-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1738 |
+
|
| 1739 |
+
* libexif/exif-entry.c: Don't crash if entries are totally insane.
|
| 1740 |
+
|
| 1741 |
+
2003-07-20 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1742 |
+
|
| 1743 |
+
* configure.in: Version 0.5.10
|
| 1744 |
+
|
| 1745 |
+
2003-05-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1746 |
+
|
| 1747 |
+
Suggestion by Gernot Jander <gernot@bigpond.com>:
|
| 1748 |
+
|
| 1749 |
+
* libexif/exif-entry.c: Ignore " " in EXIF_TAG_COPYRIGHT.
|
| 1750 |
+
|
| 1751 |
+
2003-04-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1752 |
+
|
| 1753 |
+
* libexif/exif-loader.c: Set ref_count to 1 on exif_loader_new.
|
| 1754 |
+
|
| 1755 |
+
2003-04-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1756 |
+
|
| 1757 |
+
* libexif/exif-entry.c: Another attempt to fix EXIF_TAG_COPYRIGHT.
|
| 1758 |
+
|
| 1759 |
+
2003-04-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1760 |
+
|
| 1761 |
+
Bug discovered by Jay Love <jslove@users.sourceforge.net>
|
| 1762 |
+
|
| 1763 |
+
* libexif/exif-entry.c: Don't crash if EXIF_TAG_COPYRIGHT is NULL.
|
| 1764 |
+
|
| 1765 |
+
2003-04-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1766 |
+
|
| 1767 |
+
Patch by Gernot Jander <gernot@bigpond.com>:
|
| 1768 |
+
|
| 1769 |
+
* libexif/exif-tag.c: Add call to bind_textdomain_codeset
|
| 1770 |
+
* po/*.UTF-8: New.
|
| 1771 |
+
|
| 1772 |
+
2003-03-13 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1773 |
+
|
| 1774 |
+
* libjpeg/jpeg-data.c: Aravind <aravinds1@users.sourceforge.net>
|
| 1775 |
+
found a bug there.
|
| 1776 |
+
|
| 1777 |
+
2003-03-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1778 |
+
|
| 1779 |
+
* libexif/exif-data.c (exif_data_new_from_file): Use the new
|
| 1780 |
+
ExifLoader. It seems to work.
|
| 1781 |
+
|
| 1782 |
+
2003-03-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1783 |
+
|
| 1784 |
+
* libexif/exif-loader.[c,h]: New. Mostly written by Jens Finke
|
| 1785 |
+
<jens@triq.net>. Not tested at all.
|
| 1786 |
+
|
| 1787 |
+
2003-02-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1788 |
+
|
| 1789 |
+
* libexif/exif-tag.c: Fix typo.
|
| 1790 |
+
|
| 1791 |
+
2003-01-22 Lutz Mller <lutz@users.sourceforge.net>
|
| 1792 |
+
|
| 1793 |
+
* libexif/exif-entry.c (exif_entry_get_value): Support USER_COMMENT.
|
| 1794 |
+
|
| 1795 |
+
2002-12-31 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1796 |
+
|
| 1797 |
+
* README: Some information by Sander van Geloven
|
| 1798 |
+
<svgeloven@zonnet.nl>.
|
| 1799 |
+
|
| 1800 |
+
2002-12-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1801 |
+
|
| 1802 |
+
* libexif/exif-entry.c (exif_entry_initialize): Fix last commit.
|
| 1803 |
+
|
| 1804 |
+
2002-12-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1805 |
+
|
| 1806 |
+
* libexif/exif-entry.c (exif_entry_initialize): Support USER_COMMENT.
|
| 1807 |
+
* configure.in: Version 0.5.9
|
| 1808 |
+
|
| 1809 |
+
2002-12-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1810 |
+
|
| 1811 |
+
* README: New frontend 'thirdeye'.
|
| 1812 |
+
|
| 1813 |
+
2002-12-07 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1814 |
+
|
| 1815 |
+
* configure.in: Version 0.5.8
|
| 1816 |
+
|
| 1817 |
+
2002-12-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1818 |
+
|
| 1819 |
+
* libexif/Makefile.am: Forgot to remove the some subdirs.
|
| 1820 |
+
|
| 1821 |
+
2002-12-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1822 |
+
|
| 1823 |
+
* configure.in: Remove some Makefiles
|
| 1824 |
+
|
| 1825 |
+
2002-12-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1826 |
+
|
| 1827 |
+
* configure.in: Reflect removal of exif-note.h in version.
|
| 1828 |
+
|
| 1829 |
+
2002-12-02 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1830 |
+
|
| 1831 |
+
* libexif/exif-note.[c,h]: Removed. Now in libmnote.
|
| 1832 |
+
|
| 1833 |
+
2002-09-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1834 |
+
|
| 1835 |
+
* libexif: Some fixes for Windows (Visual C++) by
|
| 1836 |
+
Andres <aplaza@smalcamera.com>
|
| 1837 |
+
|
| 1838 |
+
2002-09-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1839 |
+
|
| 1840 |
+
* configure.in: IRIS fixes by Andrea Suatoni
|
| 1841 |
+
<a.suatoni@telefonica.net>
|
| 1842 |
+
|
| 1843 |
+
2002-09-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1844 |
+
|
| 1845 |
+
* configure.in:
|
| 1846 |
+
* po/es.po: Spanish translation by Fabian Mandelbaum
|
| 1847 |
+
<fabman@2vias.com.ar>
|
| 1848 |
+
|
| 1849 |
+
2002-08-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1850 |
+
|
| 1851 |
+
* libexif/exif-data.c: Some cleanup.
|
| 1852 |
+
|
| 1853 |
+
2002-08-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1854 |
+
|
| 1855 |
+
Renchi Raju <renchi@pooh.tam.uiuc.edu> found another bug in
|
| 1856 |
+
|
| 1857 |
+
* libexif/exif-data.c: Correctly save the data.
|
| 1858 |
+
* configure.in: Version 0.5.6.
|
| 1859 |
+
|
| 1860 |
+
2002-08-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1861 |
+
|
| 1862 |
+
Jason Sodergren <jason@taiga.com> found a lot of bugs in
|
| 1863 |
+
|
| 1864 |
+
* libexif/exif-data.c: Correctly save the data.
|
| 1865 |
+
* configure.in: Version 0.5.5.
|
| 1866 |
+
|
| 1867 |
+
2002-08-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1868 |
+
|
| 1869 |
+
Another fixes related to #564019:
|
| 1870 |
+
|
| 1871 |
+
* libexif: Make code conform to ISO C standard, section 6.5.2.3.
|
| 1872 |
+
|
| 1873 |
+
2002-08-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1874 |
+
|
| 1875 |
+
Bug reported by Jason Sodergren <jason@taiga.com>:
|
| 1876 |
+
|
| 1877 |
+
* libexif/exif-data.c: EXIF_IFD_1 -> EXIF_IFD_0.
|
| 1878 |
+
|
| 1879 |
+
2002-08-02 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
| 1880 |
+
|
| 1881 |
+
* configure.in: Version 0.5.4dev
|
| 1882 |
+
distinguish release versions from CVS versions
|
| 1883 |
+
|
| 1884 |
+
2002-07-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1885 |
+
|
| 1886 |
+
* libexif/exif-ifd.[c,h]: New.
|
| 1887 |
+
* libexif/exif-data.h: Introduce an array of ExifContents. This
|
| 1888 |
+
doesn't break binary compatibility, but it breaks compilation.
|
| 1889 |
+
Do something like "%s/->ifd_0/->ifd[EXIF_IFD_0]" in your source
|
| 1890 |
+
code to make it compile again.
|
| 1891 |
+
* configure.in: Version 0.5.4.
|
| 1892 |
+
|
| 1893 |
+
2002-07-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1894 |
+
|
| 1895 |
+
Patch by anonymous user:
|
| 1896 |
+
|
| 1897 |
+
* libexif/exif-[byte-order,format,result,tag].h: Make code comply with
|
| 1898 |
+
ISO C standard, section 6.5.2.3.
|
| 1899 |
+
|
| 1900 |
+
2002-07-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1901 |
+
|
| 1902 |
+
Patch by Takuro Ashie <makeinu@users.sourceforge.net>:
|
| 1903 |
+
|
| 1904 |
+
* libexif/exif-data.c: Plug memory leak.
|
| 1905 |
+
|
| 1906 |
+
2002-07-10 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1907 |
+
|
| 1908 |
+
Bug spotted by Andres <aplaza@smalcamera.com>:
|
| 1909 |
+
|
| 1910 |
+
* libexif/exif-data.c: Save the EXIF_TAG_INTEROPERABILITY_IFD_POINTER
|
| 1911 |
+
in ifd_exif, not in ifd0.
|
| 1912 |
+
|
| 1913 |
+
2002-06-26 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1914 |
+
|
| 1915 |
+
Patch by Jos van den Oever <oever@fenk.wau.nl>: Make libexif c++
|
| 1916 |
+
friendly.
|
| 1917 |
+
|
| 1918 |
+
2002-06-14 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1919 |
+
|
| 1920 |
+
* configure.in: Correct -version-info.
|
| 1921 |
+
|
| 1922 |
+
2002-06-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1923 |
+
|
| 1924 |
+
* configure.in: Version 0.5.3
|
| 1925 |
+
|
| 1926 |
+
2002-06-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1927 |
+
|
| 1928 |
+
* libexif/Makefile.am: Oops, missed those konica entries.
|
| 1929 |
+
|
| 1930 |
+
2002-06-10 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1931 |
+
|
| 1932 |
+
* configure.in: Version 0.5.2
|
| 1933 |
+
|
| 1934 |
+
2002-06-10 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1935 |
+
|
| 1936 |
+
* configure.in: We need autoconf > 2.50.
|
| 1937 |
+
|
| 1938 |
+
2002-06-09 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1939 |
+
|
| 1940 |
+
Internationalization.
|
| 1941 |
+
|
| 1942 |
+
2002-06-08 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1943 |
+
|
| 1944 |
+
Patch by Guido Ostkamp <guido.ostkamp@t-online.de>
|
| 1945 |
+
|
| 1946 |
+
* libexif/exif-data.c: Increment offset by 12.
|
| 1947 |
+
|
| 1948 |
+
2002-06-06 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1949 |
+
|
| 1950 |
+
Bug spotted by Andres <aplaza@smalcamera.com>:
|
| 1951 |
+
|
| 1952 |
+
* exif-entry.c: Fix typo.
|
| 1953 |
+
|
| 1954 |
+
2002-06-05 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1955 |
+
|
| 1956 |
+
* COPYING: Check the text of the LGPL in, because otherwise,
|
| 1957 |
+
automake --add-missing would use the text of the GPL.
|
| 1958 |
+
|
| 1959 |
+
2002-06-03 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1960 |
+
|
| 1961 |
+
* configure.in: Version 0.5.1
|
| 1962 |
+
|
| 1963 |
+
2002-05-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1964 |
+
|
| 1965 |
+
Patch by Arnaud Rouanet <rouanet@labri.fr>:
|
| 1966 |
+
|
| 1967 |
+
* libexif/exif-entry.c (exif_entry_get_value): Fix typo.
|
| 1968 |
+
|
| 1969 |
+
2002-04-30 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1970 |
+
|
| 1971 |
+
Patch by Arnaud Rouanet <rouanet@labri.fr>:
|
| 1972 |
+
|
| 1973 |
+
* libexif/exif-entry.c (exif_entry_get_value): Support version 2.2.
|
| 1974 |
+
|
| 1975 |
+
2002-04-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1976 |
+
|
| 1977 |
+
Patch by Marcus Meissner <marcus@jet.franken.de>:
|
| 1978 |
+
|
| 1979 |
+
* libexif/*.h: Make header files c++ friendly.
|
| 1980 |
+
|
| 1981 |
+
2002-04-16 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1982 |
+
|
| 1983 |
+
Enhancements by Semyon Sosin <sem@best.com>, adapted:
|
| 1984 |
+
|
| 1985 |
+
* libexif/exif-content.h: Add some convenience defines.
|
| 1986 |
+
* libexif/exif-entry.[c,h] (exif_entry_get_value_brief): New.
|
| 1987 |
+
* README: Add a note about libjpeg.
|
| 1988 |
+
|
| 1989 |
+
2002-04-15 Lutz Mueller <lutz@users.sourceforge.net>
|
| 1990 |
+
|
| 1991 |
+
Enhancements by Semyon Sosin <sem@best.com>, adapted:
|
| 1992 |
+
|
| 1993 |
+
* libexif/exif-entry.c (exif_entry_get_value): More tags covered.
|
| 1994 |
+
* libexif/exif-data.c (exif_data_new_from_file): Don't read the whole
|
| 1995 |
+
file into memory.
|
| 1996 |
+
|
| 1997 |
+
2002-04-04 Hans Ulrich Niedermann <gp@n-dimensional.de>
|
| 1998 |
+
|
| 1999 |
+
* Makefile.am: dded .tar.bz2 packaging to "make dist"
|
| 2000 |
+
|
| 2001 |
+
2002-03-01 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2002 |
+
|
| 2003 |
+
Patch by Mark Pulford <mark@kyne.com.au>:
|
| 2004 |
+
|
| 2005 |
+
* libexif.spec.in: New
|
| 2006 |
+
* configure.in:
|
| 2007 |
+
* Makefile.am: Create libexif.spec
|
| 2008 |
+
|
| 2009 |
+
2002-02-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2010 |
+
|
| 2011 |
+
Patch by Javier Achirica <achirica@ttd.net>:
|
| 2012 |
+
|
| 2013 |
+
* libexif/exif-data.c: Fix directory length and termination.
|
| 2014 |
+
|
| 2015 |
+
2002-02-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2016 |
+
|
| 2017 |
+
* libexif/exif-entry.c (exif_entry_get_value): Add support for
|
| 2018 |
+
EXIF_TAG_SUBJECT_AREA.
|
| 2019 |
+
|
| 2020 |
+
2002-02-28 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2021 |
+
|
| 2022 |
+
Patch by Javier Achirica <achirica@ttd.net>:
|
| 2023 |
+
|
| 2024 |
+
* libexif/exif-tag.[c,h]:
|
| 2025 |
+
* libexif/exif-entry.c: Support EXIF-2.2 tags.
|
| 2026 |
+
|
| 2027 |
+
2002-02-25 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2028 |
+
|
| 2029 |
+
Patch by Basil Dias <basil.dias@wipro.com>:
|
| 2030 |
+
|
| 2031 |
+
* libjpeg/jpeg-data.c: Missing realloc.
|
| 2032 |
+
|
| 2033 |
+
2002-02-21 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2034 |
+
|
| 2035 |
+
* libexif/canon: Set up support for parsing MakerNotes.
|
| 2036 |
+
|
| 2037 |
+
2002-02-20 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2038 |
+
|
| 2039 |
+
* libexif/exif-data.c:
|
| 2040 |
+
* libjpeg/jpeg-data.c: Read and write "rb" (Windows needs it).
|
| 2041 |
+
|
| 2042 |
+
2002-02-18 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2043 |
+
|
| 2044 |
+
* libexif/exif-data.c: Suppress output unless #ifdef DEBUG
|
| 2045 |
+
|
| 2046 |
+
2002-02-17 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2047 |
+
|
| 2048 |
+
Patch from Fredrik <fredrik@krixor.xy.org>:
|
| 2049 |
+
|
| 2050 |
+
* libexif/exif-data.c: Better checks for size.
|
| 2051 |
+
|
| 2052 |
+
2002-02-13 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2053 |
+
|
| 2054 |
+
* libexif/configure.in: Introduce proper versionning.
|
| 2055 |
+
|
| 2056 |
+
2002-02-13 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2057 |
+
|
| 2058 |
+
* libexif: There's only one ByteOrder per ExifData.
|
| 2059 |
+
|
| 2060 |
+
2002-02-12 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2061 |
+
|
| 2062 |
+
* libexif/exif-entry.c: More initialization.
|
| 2063 |
+
|
| 2064 |
+
2002-02-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2065 |
+
|
| 2066 |
+
* configure.in: Version 0.5
|
| 2067 |
+
|
| 2068 |
+
2002-02-11 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2069 |
+
|
| 2070 |
+
* libexif/libexif-entry.c: More tags implemented in
|
| 2071 |
+
(exif_entry_get_value).
|
| 2072 |
+
|
| 2073 |
+
2002-02-06 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2074 |
+
|
| 2075 |
+
* configure.in: Version 0.4
|
| 2076 |
+
|
| 2077 |
+
2002-02-05 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2078 |
+
|
| 2079 |
+
* configure.in: Version 0.3
|
| 2080 |
+
|
| 2081 |
+
2002-02-05 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2082 |
+
|
| 2083 |
+
* libexif: Implement saving.
|
| 2084 |
+
|
| 2085 |
+
2002-01-29 Lutz Mueller <lutz@users.sourceforge.net>
|
| 2086 |
+
|
| 2087 |
+
* configure.in: Version 0.2
|
| 2088 |
+
|
| 2089 |
+
2002-01-06 Lutz Mueller <urc8@rz.uni-karlsruhe.de>
|
| 2090 |
+
|
| 2091 |
+
Merge new stuff from gtkam/libexif.
|
| 2092 |
+
|
| 2093 |
+
2001-12-23 Lutz Mueller <urc8@rz.uni-karlsruhe.de>
|
| 2094 |
+
|
| 2095 |
+
Merge new stuff from gtkam/libexif.
|
| 2096 |
+
|
| 2097 |
+
2001-12-21 Lutz Mueller <urc8@rz.uni-karlsruhe.de>
|
| 2098 |
+
|
| 2099 |
+
Move new version from gtkam to here.
|
| 2100 |
+
|
| 2101 |
+
2001-12-11 Lutz Mueller <urc8@rz.uni-karlsruhe.de>
|
| 2102 |
+
|
| 2103 |
+
Initial automake setup.
|
local-test-libexif-delta-01-exif-004/afc-libexif/Makefile.am
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SUBDIRS = m4m po libexif test doc binary-dist contrib
|
| 2 |
+
|
| 3 |
+
EXTRA_DIST = @PACKAGE_TARNAME@.spec README-Win32.txt
|
| 4 |
+
|
| 5 |
+
pkgconfigdir = $(libdir)/pkgconfig
|
| 6 |
+
|
| 7 |
+
pkgconfig_DATA = libexif.pc
|
| 8 |
+
EXTRA_DIST += libexif.pc.in
|
| 9 |
+
|
| 10 |
+
noinst_DATA = libexif-uninstalled.pc
|
| 11 |
+
EXTRA_DIST += libexif-uninstalled.pc.in
|
| 12 |
+
|
| 13 |
+
ACLOCAL_AMFLAGS = -I auto-m4 -I m4m
|
| 14 |
+
|
| 15 |
+
EXTRA_DIST += SECURITY.md
|
| 16 |
+
doc_DATA = README AUTHORS NEWS ChangeLog ABOUT-NLS COPYING SECURITY.md
|
| 17 |
+
|
| 18 |
+
#######################################################################
|
| 19 |
+
# Help for the maintainer
|
| 20 |
+
#
|
| 21 |
+
|
| 22 |
+
# Simulate something like
|
| 23 |
+
# EXTRA_DIST_IF_EXIST = ChangeLog.git
|
| 24 |
+
# If present, ship ChangeLog.git in source tarball.
|
| 25 |
+
# If not present, don't ship it.
|
| 26 |
+
dist-hook:
|
| 27 |
+
if test -f $(srcdir)/ChangeLog.git; then \
|
| 28 |
+
cp -p $(srcdir)/ChangeLog.git $(distdir)/ChangeLog.git; \
|
| 29 |
+
fi
|
| 30 |
+
|
| 31 |
+
.PHONY: git-changelog
|
| 32 |
+
git-changelog: $(srcdir)/ChangeLog.git
|
| 33 |
+
|
| 34 |
+
.PHONY: $(srcdir)/ChangeLog.git
|
| 35 |
+
$(srcdir)/ChangeLog.git:
|
| 36 |
+
(cd "$(srcdir)" && git2cl > $@)
|
| 37 |
+
|
| 38 |
+
.PHONY: git-tag-release
|
| 39 |
+
git-tag-release:
|
| 40 |
+
@tag="$$(echo "$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-release" | sed 's|\.|_|g')"; \
|
| 41 |
+
echo "Are you sure you want to git tag \`$${tag}' your source files?"; \
|
| 42 |
+
echo "Press Ctrl-C to abort, Enter to continue."; \
|
| 43 |
+
read; \
|
| 44 |
+
cd "$(srcdir)" && git tag "$${tag}"
|
| 45 |
+
|
| 46 |
+
# End of Makefile.am.
|
local-test-libexif-delta-01-exif-004/afc-libexif/NEWS
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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UT_SENSITIVITY
|
| 5 |
+
- EXIF_TAG_RECOMMENDED_EXPOSURE_INDEX
|
| 6 |
+
- EXIF_TAG_ISO_SPEED
|
| 7 |
+
- EXIF_TAG_ISO_SPEEDLatitudeYYY
|
| 8 |
+
- EXIF_TAG_ISO_SPEEDLatitudeZZZ
|
| 9 |
+
- EXIF_TAG_OFFSET_TIME
|
| 10 |
+
- EXIF_TAG_OFFSET_TIME_ORIGINAL
|
| 11 |
+
- EXIF_TAG_OFFSET_TIME_DIGITIZED
|
| 12 |
+
- EXIF_TAG_IMAGE_DEPTH
|
| 13 |
+
* be more relaxed to out of order JPG / EXIF dataheaders in files generated by some tools
|
| 14 |
+
* default GPS IFD table added
|
| 15 |
+
* Security fixes:
|
| 16 |
+
* CVE-2020-0198: unsigned integer overflow in exif_data_load_data_content
|
| 17 |
+
* CVE-2020-0452: compiler optimization could remove an a
|
| 18 |
+
bufferoverflow check, making a buffer overflow possible with some
|
| 19 |
+
EXIF tags
|
| 20 |
+
* some more denial of service (compute time) counter-measures added
|
| 21 |
+
that avoid minutes of decoding time with malformed files found
|
| 22 |
+
by oss-fuzz
|
| 23 |
+
|
| 24 |
+
libexif-0.6.22 (2020-05-18):
|
| 25 |
+
* New translations: ms
|
| 26 |
+
* Updated translations for most languages
|
| 27 |
+
* Fixed C89 compatibility
|
| 28 |
+
* Fixed warnings on recent versions of autoconf
|
| 29 |
+
* Some useful EXIF 2.3 tag added:
|
| 30 |
+
* EXIF_TAG_GAMMA
|
| 31 |
+
* EXIF_TAG_COMPOSITE_IMAGE
|
| 32 |
+
* EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE
|
| 33 |
+
* EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE
|
| 34 |
+
* EXIF_TAG_GPS_H_POSITIONING_ERROR
|
| 35 |
+
* EXIF_TAG_CAMERA_OWNER_NAME
|
| 36 |
+
* EXIF_TAG_BODY_SERIAL_NUMBER
|
| 37 |
+
* EXIF_TAG_LENS_SPECIFICATION
|
| 38 |
+
* EXIF_TAG_LENS_MAKE
|
| 39 |
+
* EXIF_TAG_LENS_MODEL
|
| 40 |
+
* EXIF_TAG_LENS_SERIAL_NUMBER
|
| 41 |
+
* Lots of fixes exposed by fuzzers like AFL, ClusterFuzz, OSSFuzz and others.
|
| 42 |
+
* CVE-2018-20030: Fix for recursion DoS
|
| 43 |
+
* CVE-2020-13114: Time consumption DoS when parsing canon array markers
|
| 44 |
+
* CVE-2020-13113: Potential use of uninitialized memory
|
| 45 |
+
* CVE-2020-13112: Various buffer overread fixes due to integer overflows in maker notes
|
| 46 |
+
* CVE-2020-0093: read overflow
|
| 47 |
+
* CVE-2019-9278: replaced integer overflow checks the compiler could optimize away by safer constructs
|
| 48 |
+
* CVE-2020-12767: fixed division by zero
|
| 49 |
+
* CVE-2016-6328: fixed integer overflow when parsing maker notes
|
| 50 |
+
* CVE-2017-7544: fixed buffer overread
|
| 51 |
+
|
| 52 |
+
libexif-0.6.21 (2012-07-12):
|
| 53 |
+
* New translations: en_AU, uk
|
| 54 |
+
* Updated translations: cs, da, de, en_CA, nl, pl, sk, sv, vi
|
| 55 |
+
* Added more supported lens in Canon MakerNote
|
| 56 |
+
* Added some defensive NULL pointer checks
|
| 57 |
+
* Fixed a number of security and stability issues due to buffer overflows,
|
| 58 |
+
bad pointer dereferences and division-by-zero including bug #3434540
|
| 59 |
+
and bug #3434545 (CVE-2012-2812, CVE-2012-2813, CVE-2012-2814,
|
| 60 |
+
CVE-2012-2836, CVE-2012-2837, CVE-2012-2840, CVE-2012-2841,
|
| 61 |
+
CVE-2012-2845)
|
| 62 |
+
|
| 63 |
+
libexif-0.6.20 (2010-12-15):
|
| 64 |
+
* New translations: bs, tr
|
| 65 |
+
* Updated translations: be, cs, da, de, en_GB, en_CA, it, ja, nl, pl, pt_BR,
|
| 66 |
+
pt, ru, sk, sq, sr, sv, vi, zh_CN
|
| 67 |
+
* Fixed some problems in the write-exif.c example program
|
| 68 |
+
* Stop listing -lm as a required library for dynamic linking in libexif.pc
|
| 69 |
+
* Turned on the --enable-silent-rules configure option
|
| 70 |
+
* Changed a lot of strings to make the case of the text more consistent
|
| 71 |
+
* exif_entry_dump() now displays the correct tag name for GPS tags
|
| 72 |
+
* Fixed some invalid format specifiers that caused problems on some platforms
|
| 73 |
+
* Display rational numbers with the right number of significant figures
|
| 74 |
+
|
| 75 |
+
libexif-0.6.19 (2009-11-12):
|
| 76 |
+
* New translations: be, en_GB, it, ja, pt, sq, zh_CN
|
| 77 |
+
* Updated translations: da, sv, vi
|
| 78 |
+
* Now using a binary search to make searching through the tag table faster
|
| 79 |
+
* Fixed a heap buffer overflow during tag format conversion (CVE-2009-3895)
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
libexif-0.6.18 (2009-10-09):
|
| 83 |
+
* New translations: da, pt_BR, sr
|
| 84 |
+
* Updated translations: cs, de, en_CA, nl, pl, sk, sv, vi
|
| 85 |
+
* Added some example programs
|
| 86 |
+
* libexif is now thread safe when the underlying C library is thread safe
|
| 87 |
+
and when each object allocated by libexif isn't used by more than one
|
| 88 |
+
thread simultaneously
|
| 89 |
+
* Expanded the Doxygen API documentation
|
| 90 |
+
* Access to the raw EXIF data through the ExifEntry structure members is
|
| 91 |
+
now officially documented
|
| 92 |
+
* Fixed some Olympus/Sanyo MakerNote interpretations
|
| 93 |
+
* Added support for Epson MakerNotes
|
| 94 |
+
* Fixed bug #1946138 to stop ignoring CFLAGS in the sqrt configure test
|
| 95 |
+
* Added remaining GPS tags from the EXIF 2.2 spec to the tag table
|
| 96 |
+
* Fixed the interpretation of some tags as being optional in IFD 1
|
| 97 |
+
(to match the EXIF 2.2 spec) which stops them from being erroneously
|
| 98 |
+
removed from a file when EXIF_DATA_OPTION_IGNORE_UNKNOWN_TAGS is set
|
| 99 |
+
* Changed exif_tag_get_support_level_in_ifd() to return a value when possible
|
| 100 |
+
when the data type for the given EXIF data is unknown. This will cause
|
| 101 |
+
tags to be added or deleted when tag fixup is requested even, without a
|
| 102 |
+
data type being set.
|
| 103 |
+
* Added support for writing Pentax and Casio type2 MakerNotes
|
| 104 |
+
* Improved display of Pentax and Casio type2 MakerNotes
|
| 105 |
+
* Completely fixed bug #1617997 to display APEX values correctly
|
| 106 |
+
* Stopped some crashes due to read-beyond-buffer accesses in MakerNotes
|
| 107 |
+
* Don't abort MakerNote parsing after the first invalid tag
|
| 108 |
+
* Sped up exif_content_fix()
|
| 109 |
+
* Fixed negative exposure values in Canon makernotes (bug #2797280)
|
| 110 |
+
* New API entry point: exif_loader_get_buf()
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
libexif-0.6.17 (2008-11-06):
|
| 114 |
+
* Updated translations: cs, de, pl, sk, vi
|
| 115 |
+
* New translations: nl, sv, en_CA
|
| 116 |
+
* Bug fixes: #1773810, #1774626, #1536244, CVE-2007-6351, CVE-2007-6352,
|
| 117 |
+
#2071600 and others
|
| 118 |
+
* Enhanced support of Canon and Olympus makernotes
|
| 119 |
+
* Added support for Fuji and Sanyo makernotes
|
| 120 |
+
* Added support for the NO_VERBOSE_TAG_STRINGS and NO_VERBOSE_TAG_DATA
|
| 121 |
+
macros to reduce size for embedded applications
|
| 122 |
+
* Added support for more tags
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
libexif-0.6.16 (2007-06-12):
|
| 126 |
+
* Security fix: CVE-2006-4168 aka IDEF1514.
|
| 127 |
+
* Updated translations: cz, pl, vi
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
New in 0.6.15 (2007-05-23) since 0.6.14 (2007-05-10):
|
| 131 |
+
|
| 132 |
+
* Added support for 2 new types of Pentax makernotes & Casio type2 makernote
|
| 133 |
+
|
| 134 |
+
* Added support for Win XP metadata (Author, Comment, KeyWords, Title,
|
| 135 |
+
Subject) tags
|
| 136 |
+
|
| 137 |
+
* Bug fixes:
|
| 138 |
+
[ 1443183 ] install error when doxygen is not present.
|
| 139 |
+
|
| 140 |
+
* New translations: Czech, Slovak.
|
| 141 |
+
|
| 142 |
+
* Improved doxygen generated API and code internals
|
| 143 |
+
documentation. Made building of code internals docs optional
|
| 144 |
+
(--enable-internal-docs) as the call graphs take quite long to
|
| 145 |
+
build. Made building any docs optional (--disable-docs).
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
New in 0.6.14 (2007-05-10) since 0.6.13 (2005-12-27):
|
| 149 |
+
|
| 150 |
+
* Bug fixes: #1457501, #1471060, #1525770, #1617991, #1703284, #1716196
|
| 151 |
+
|
| 152 |
+
* Extended support of Canon, Nikon, Olympus makernotes
|
| 153 |
+
|
| 154 |
+
* Added option EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE to prevent
|
| 155 |
+
modification of maker notes
|
| 156 |
+
|
| 157 |
+
* Other fixes and improvements which include API/ABI additions.
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
New in 0.6.13 (2005-12-27) since 0.6.12 (2005-03-13):
|
| 161 |
+
|
| 162 |
+
* Bug fixes: #803191, #1051994, #1054321, #1054323, #1196787
|
| 163 |
+
|
| 164 |
+
* For pkg-config users, force usage of #include <libexif/exif-*.h>
|
| 165 |
+
(disable #include <exif-.h>)
|
| 166 |
+
|
| 167 |
+
* Updated German translation
|
| 168 |
+
|
| 169 |
+
* Build system tuning
|
| 170 |
+
|
| 171 |
+
* Misc changes:
|
| 172 |
+
Fix COPYRIGHT tag, fix memory corruption, use qsort.
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
New in 0.6.12 (2005-03-13) since 0.6.11 (2004-10-16):
|
| 176 |
+
|
| 177 |
+
* Final fix of Ubuntu Security Notice USN-91-1 (CAN-2005-0664)
|
| 178 |
+
https://bugzilla.ubuntulinux.org/show_bug.cgi?id=7152
|
| 179 |
+
|
| 180 |
+
* Updated build system with cross compile capabilities
|
| 181 |
+
|
| 182 |
+
* Small fixes:
|
| 183 |
+
Fix tag order, use even offsets, improve Nikon&Olympus mnote tags.
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
New in 0.6.11 (2004-10-16) since 0.6.10 (2004-08-27):
|
| 187 |
+
|
| 188 |
+
* Improved tag names, titles, and descriptions.
|
| 189 |
+
|
| 190 |
+
* Bug fixes for memory leaks, format strings, month one off, ...
|
| 191 |
+
|
| 192 |
+
* Support for Watcom compiler (requires manual copying of files)
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
New in 0.6.10 (2004-08-27) since 0.5.9 (2002-12-11):
|
| 196 |
+
|
| 197 |
+
* New tags suppored, and added a few more checks.
|
| 198 |
+
|
| 199 |
+
* API changes
|
| 200 |
+
|
| 201 |
+
* libmnote has been merged back into libexif
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
General remarks:
|
| 205 |
+
|
| 206 |
+
* This file contains changes visible to users.
|
| 207 |
+
|
| 208 |
+
* Small bug fixes (typos, memory leaks, ...) and feature
|
| 209 |
+
enhancements (new tag types, ...) are not mentioned
|
| 210 |
+
explicitly.
|
| 211 |
+
|
| 212 |
+
* Apart from that, I would like to ask committers to update this
|
| 213 |
+
file when they commit "big" user visible changes.
|
| 214 |
+
|
| 215 |
+
* If someone wants to reconstruct past changes and log them here,
|
| 216 |
+
you're welcome to.
|
local-test-libexif-delta-01-exif-004/afc-libexif/README
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
libexif
|
| 2 |
+
-------
|
| 3 |
+
|
| 4 |
+
DESCRIPTION
|
| 5 |
+
-----------
|
| 6 |
+
|
| 7 |
+
libexif is a library for parsing, editing, and saving EXIF data. It is
|
| 8 |
+
intended to replace lots of redundant implementations in command-line
|
| 9 |
+
utilities and programs with GUIs.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
FEATURES
|
| 13 |
+
--------
|
| 14 |
+
|
| 15 |
+
libexif supports parsing, editing and saving of EXIF data. In addition, it
|
| 16 |
+
has gettext support. All EXIF tags described in EXIF standard 2.1 (and most
|
| 17 |
+
from 2.2) are supported. Many maker notes from Canon, Casio, Epson,
|
| 18 |
+
Fuji, Nikon, Olympus, Pentax and Sanyo cameras are also supported.
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
REQUIREMENTS
|
| 22 |
+
------------
|
| 23 |
+
|
| 24 |
+
libexif is written in plain C and does not require any additional library.
|
| 25 |
+
GNU gettext will be used for language translation, if available.
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
LIMITATIONS
|
| 29 |
+
-----------
|
| 30 |
+
|
| 31 |
+
libexif can only handle some maker notes, and even those not very well. More
|
| 32 |
+
work needs to be done. Note that libmnote has been merged with libexif - it
|
| 33 |
+
is no longer needed.
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
USAGE
|
| 37 |
+
-----
|
| 38 |
+
|
| 39 |
+
We have documented the libexif API using doxygen and are making
|
| 40 |
+
the results available at https://libexif.github.io/api/
|
| 41 |
+
|
| 42 |
+
The short test programs in the test directory illustrates how to create
|
| 43 |
+
valid EXIF data from scratch, how to save EXIF data and how to load EXIF
|
| 44 |
+
data from data in memory. To run the test programs, just run make check.
|
| 45 |
+
There are also a few simple example programs available in the
|
| 46 |
+
contrib/examples/ directory. Don't hesitate to contact
|
| 47 |
+
us at <libexif-devel@lists.sourceforge.net> if you have any questions
|
| 48 |
+
on how to use libexif.
|
| 49 |
+
|
| 50 |
+
To link to libexif into your own package, we recommend using the
|
| 51 |
+
pkgconfig utility (cf. https://www.freedesktop.org/wiki/Software/pkg-config/ For
|
| 52 |
+
your convenience, libexif both provides libexif-uninstalled.pc and
|
| 53 |
+
installs libexif.pc.
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
FRONTENDS
|
| 57 |
+
---------
|
| 58 |
+
|
| 59 |
+
Here are a few frontends to libexif:
|
| 60 |
+
- exif: A small command-line utility to show EXIF information in JPEG
|
| 61 |
+
files (https://github.com/libexif/libexif).
|
| 62 |
+
- gexif: A GTK+ frontend for editing EXIF data
|
| 63 |
+
(https://github.com/libexif/gexif).
|
| 64 |
+
- gphoto2: A command-line frontend to libgphoto2, a library to access a
|
| 65 |
+
wide range of digital cameras (http://www.gphoto.org).
|
| 66 |
+
- gtkam: A GTK+ frontend to libgphoto2 (http://www.gphoto.org).
|
| 67 |
+
- thirdeye: Digital photos organizer and driver for eComStation
|
| 68 |
+
(http://ecomstation.ru/thirdeye).
|
| 69 |
+
- digikam: digital photo management application for KDE
|
| 70 |
+
(https://www.digikam.org/)
|
| 71 |
+
|
| 72 |
+
If you would like to migrate your program to use libexif or add EXIF support
|
| 73 |
+
to it, don't hesitate to contact the authors.
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
LIBRARIES
|
| 77 |
+
---------
|
| 78 |
+
|
| 79 |
+
The following libraries use or have been inspired by libexif:
|
| 80 |
+
- libexif-gtk: library of widgets to help display EXIF tags in GTK
|
| 81 |
+
programs (https://github.com/libexif/libexif-gtk).
|
| 82 |
+
- pel: PHP-Code (https://github.com/lsolesen/pel/)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
BUILDING
|
| 86 |
+
--------
|
| 87 |
+
|
| 88 |
+
It really depends on your environment what to do in order to get libexif
|
| 89 |
+
to build. Building from the source tar ball usually involves the commands:
|
| 90 |
+
|
| 91 |
+
./configure
|
| 92 |
+
make
|
| 93 |
+
sudo make install
|
| 94 |
+
|
| 95 |
+
When building from source out of git, something like the following will be
|
| 96 |
+
necessary:
|
| 97 |
+
|
| 98 |
+
autoreconf -i
|
| 99 |
+
./configure
|
| 100 |
+
make
|
| 101 |
+
|
| 102 |
+
Besides the standard arguments, configure takes several specific to libexif:
|
| 103 |
+
|
| 104 |
+
--disable-docs To disable producing any documentation
|
| 105 |
+
--enable-internal-docs Build internal code docs if Doxygen available
|
| 106 |
+
--enable-ship-binaries To include Windows DLLs in 'make dist'
|
| 107 |
+
|
| 108 |
+
Certain specialized applications can reduce the size of the libexif
|
| 109 |
+
binary by setting one or both of the following macros in the CPPFLAGS
|
| 110 |
+
environment variable at configure time. Each one removes certain kinds of
|
| 111 |
+
text strings and constants from the binary. Applications which need
|
| 112 |
+
to access specific, known EXIF tags and know in advance the meaning of
|
| 113 |
+
their data have no need of those strings and can save considerable space
|
| 114 |
+
by eliminating them.
|
| 115 |
+
|
| 116 |
+
-DNO_VERBOSE_TAG_STRINGS Names and descriptions of EXIF tags, debug messages,
|
| 117 |
+
mandatory EXIF fields (disabling auto-tag-fixup)
|
| 118 |
+
-DNO_VERBOSE_TAG_DATA Names of enumerated tag data contents
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
INTERNATIONALIZATION
|
| 122 |
+
--------------------
|
| 123 |
+
|
| 124 |
+
The libexif translations are made by volunteers working on their own,
|
| 125 |
+
either directly with the libexif project or through one of two translation
|
| 126 |
+
coordination sites, the Translation Project
|
| 127 |
+
<https://translationproject.org/domain/libexif.html> and Launchpad
|
| 128 |
+
<https://translations.edge.launchpad.net/ubuntu/bionic/+source/libexif/+pots/libexif-12>.
|
| 129 |
+
Any updates to language translations coordinated by the Translation Project
|
| 130 |
+
must be made through their web site, but all other languages can be
|
| 131 |
+
updated either through Launchpad (preferred) or by sending updates to
|
| 132 |
+
the libexif developers mailing list directly. As of this writing, the
|
| 133 |
+
following languages must be updated through the Translation Project:
|
| 134 |
+
cs da de es fr it ja nl pl pt sk sv uk vi
|
| 135 |
+
|
| 136 |
+
If you are interested in translating libexif into a new language, we
|
| 137 |
+
recommend that you join one of the above translation groups and take
|
| 138 |
+
advantage of the systems they have built to help you. A translation
|
| 139 |
+
disclaimer is NOT required for libexif at the Translation Project; by making
|
| 140 |
+
a translation, you agree implicitly to provide it under the same license
|
| 141 |
+
terms as the rest of libexif (LGPL).
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
AUTHORS
|
| 145 |
+
-------
|
| 146 |
+
|
| 147 |
+
libexif has originally been written by Curtis Galloway
|
| 148 |
+
<curtisg@users.sourceforge.net>. Because of the original design not
|
| 149 |
+
supporting editing and saving, Lutz Mueller <lutz@users.sourceforge.net>
|
| 150 |
+
rewrote libexif from scratch. Since then, many more people have contributed
|
| 151 |
+
to libexif.
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
LINKS
|
| 155 |
+
-----
|
| 156 |
+
|
| 157 |
+
Some links you might want to check out if you are interested in further
|
| 158 |
+
information about EXIF.
|
| 159 |
+
|
| 160 |
+
- https://drewnoakes.com/code/exif: metadata extraction framework in Java
|
| 161 |
+
- https://www.exif.org: information about the EXIF standard.
|
| 162 |
+
- https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/index.html: Looks
|
| 163 |
+
like libexif in Perl. Seems to support a lot of MakerNotes.
|
local-test-libexif-delta-01-exif-004/afc-libexif/README-Win32.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
If this is a combined source/binary distribution tree, then you can find
|
| 2 |
+
|
| 3 |
+
* the binary DLL in the subdirectory binary-dist/bin/
|
| 4 |
+
* the include files in the subdirectory binary-dist/include/
|
| 5 |
+
|
| 6 |
+
As for building libexif yourself on or for Win32, you can
|
| 7 |
+
|
| 8 |
+
a) hack yourself a build system somehow
|
| 9 |
+
This seems to be the Windows way of doing things.
|
| 10 |
+
b) Use MinGW32
|
| 11 |
+
|
| 12 |
+
If you use MinGW32 (including MSYS) on Windows, building libexif should
|
| 13 |
+
follow the usual pattern of
|
| 14 |
+
|
| 15 |
+
./configure
|
| 16 |
+
make
|
| 17 |
+
make install
|
| 18 |
+
|
| 19 |
+
as for any Unix like system and you can just follow the general
|
| 20 |
+
instructions.
|
| 21 |
+
|
| 22 |
+
Something neat to do is to use a MinGW32 cross compiler on a Unix
|
| 23 |
+
system (Debian ships one for example). Then you can run
|
| 24 |
+
|
| 25 |
+
./configure --host=i586-mingw32msvc --disable-nls
|
| 26 |
+
make
|
| 27 |
+
make install
|
| 28 |
+
|
| 29 |
+
If you want to build a combined source/binary distribution tarball/zipfile,
|
| 30 |
+
then add the --enable-ship-binaries option to the ./configure command line.
|
local-test-libexif-delta-01-exif-004/afc-libexif/SECURITY.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Security overview
|
| 2 |
+
|
| 3 |
+
## General
|
| 4 |
+
|
| 5 |
+
libexif is a software library to process EXIF datablobs, which are usually
|
| 6 |
+
embedded in JPEG files.
|
| 7 |
+
|
| 8 |
+
It allows reading, writing, changing, and extraction (binary and textual versions)
|
| 9 |
+
of this data.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Attack Surface
|
| 13 |
+
|
| 14 |
+
Any data blob put into the library should be assumed untrusted and
|
| 15 |
+
potentially malicious.
|
| 16 |
+
|
| 17 |
+
ABI parameters can be considered trusted.
|
| 18 |
+
|
| 19 |
+
The primary attack scenario is processing of files for EXIF content
|
| 20 |
+
extraction (displaying) via unattended services, up to and including
|
| 21 |
+
webservices where files can be uploaded by potential attackers.
|
| 22 |
+
|
| 23 |
+
## Bugs considered security issues
|
| 24 |
+
|
| 25 |
+
(Mostly for CVE assigments rules.)
|
| 26 |
+
|
| 27 |
+
Triggering memory corruption of any form is considered in scope.
|
| 28 |
+
Triggering endless loops is considered in scope. (would block services)
|
| 29 |
+
Triggering unintentional aborts is considered in scope.
|
| 30 |
+
|
| 31 |
+
Common library usage patterns are in scope.
|
| 32 |
+
|
| 33 |
+
Crashes during writing out of data as EXIF could be in scope.
|
| 34 |
+
|
| 35 |
+
## Bugs not considered security issues
|
| 36 |
+
|
| 37 |
+
Crashes caused by debugging functionality are not in scope.
|
| 38 |
+
|
| 39 |
+
## Bugreports
|
| 40 |
+
|
| 41 |
+
Bugreports can be filed as github issues.
|
| 42 |
+
|
| 43 |
+
If you want to report an embargoed security bug report, reach out to dan@coneharvesters.com and marcus@jet.franken.de.
|
local-test-libexif-delta-01-exif-004/afc-libexif/configure.ac
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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C_CONFIG_MACRO_DIR([auto-m4])
|
| 10 |
+
AM_INIT_AUTOMAKE([
|
| 11 |
+
-Wall
|
| 12 |
+
gnu
|
| 13 |
+
1.14.1
|
| 14 |
+
dist-xz
|
| 15 |
+
dist-bzip2
|
| 16 |
+
dist-zip
|
| 17 |
+
check-news
|
| 18 |
+
subdir-objects
|
| 19 |
+
])
|
| 20 |
+
AM_MAINTAINER_MODE
|
| 21 |
+
|
| 22 |
+
# Use the silent-rules feature when possible.
|
| 23 |
+
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
|
| 24 |
+
AM_SILENT_RULES([yes])
|
| 25 |
+
|
| 26 |
+
GP_CHECK_SHELL_ENVIRONMENT
|
| 27 |
+
GP_CONFIG_MSG([Build])
|
| 28 |
+
GP_CONFIG_MSG([Source code location], [${srcdir}])
|
| 29 |
+
|
| 30 |
+
dnl ---------------------------------------------------------------------------
|
| 31 |
+
dnl Advanced information about versioning:
|
| 32 |
+
dnl * "Writing shared libraries" by Mike Hearn
|
| 33 |
+
dnl http://plan99.net/~mike/writing-shared-libraries.html
|
| 34 |
+
dnl * libtool.info chapter "Versioning"
|
| 35 |
+
dnl * libtool.info chapter "Updating library version information"
|
| 36 |
+
dnl ---------------------------------------------------------------------------
|
| 37 |
+
dnl Versioning:
|
| 38 |
+
dnl - CURRENT (Major): Increment if the interface has changes. AGE is always
|
| 39 |
+
dnl *changed* at the same time.
|
| 40 |
+
dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
|
| 41 |
+
dnl if any interfaces have been removed. Removal has
|
| 42 |
+
dnl precedence over adding, so set to 0 if both happened.
|
| 43 |
+
dnl It denotes upward compatibility.
|
| 44 |
+
dnl - REVISION (Minor): Increment any time the source changes; set to
|
| 45 |
+
dnl 0 if you incremented CURRENT.
|
| 46 |
+
dnl
|
| 47 |
+
dnl To summarize. Any interface *change* increment CURRENT. If that interface
|
| 48 |
+
dnl change does not break upward compatibility (ie it is an addition),
|
| 49 |
+
dnl increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed,
|
| 50 |
+
dnl REVISION is set to 0, otherwise REVISION is incremented.
|
| 51 |
+
dnl ---------------------------------------------------------------------------
|
| 52 |
+
dnl C:A:R
|
| 53 |
+
dnl 12:0:1 0.6.13
|
| 54 |
+
dnl 13:1:0 added EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE (for 0.6.14)
|
| 55 |
+
dnl 14:2:0 added XP_ WinXP tags (for 0.6.15)
|
| 56 |
+
dnl 14:2:1 0.6.17
|
| 57 |
+
dnl 15:3:0 added exif_loader_get_buf (for 0.6.18)
|
| 58 |
+
dnl 15:3:1 0.6.19
|
| 59 |
+
dnl 15:3:2 0.6.20
|
| 60 |
+
dnl 15:3:3 0.6.21
|
| 61 |
+
dnl 15:3:4 0.6.22
|
| 62 |
+
LIBEXIF_CURRENT=15
|
| 63 |
+
LIBEXIF_AGE=3
|
| 64 |
+
LIBEXIF_REVISION=4
|
| 65 |
+
AC_SUBST([LIBEXIF_AGE])
|
| 66 |
+
AC_SUBST([LIBEXIF_REVISION])
|
| 67 |
+
AC_SUBST([LIBEXIF_CURRENT])
|
| 68 |
+
AC_SUBST([LIBEXIF_CURRENT_MIN],[`expr $LIBEXIF_CURRENT - $LIBEXIF_AGE`])
|
| 69 |
+
LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE"
|
| 70 |
+
AC_SUBST([LIBEXIF_VERSION_INFO])
|
| 71 |
+
|
| 72 |
+
AC_C_INLINE
|
| 73 |
+
AM_PROG_AR
|
| 74 |
+
LT_INIT([win32-dll])
|
| 75 |
+
AM_CPPFLAGS="$CPPFLAGS"
|
| 76 |
+
GP_CONFIG_MSG([Compiler], [${CC}])
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
dnl --------------------------------------------------------------------
|
| 80 |
+
dnl check for "diff" and "diff -u"
|
| 81 |
+
dnl --------------------------------------------------------------------
|
| 82 |
+
|
| 83 |
+
AC_ARG_VAR([DIFF], [path to diff utility (default: no)])
|
| 84 |
+
AC_PATH_PROG([DIFF], [diff], [no])
|
| 85 |
+
AM_CONDITIONAL([HAVE_DIFF], [test "x$DIFF" != xno])
|
| 86 |
+
|
| 87 |
+
DIFF_U="no"
|
| 88 |
+
AS_IF([test "x$DIFF" != xno], [dnl
|
| 89 |
+
AC_MSG_CHECKING([whether diff supports -u])
|
| 90 |
+
echo moo > conftest-a.c
|
| 91 |
+
echo moo > conftest-b.c
|
| 92 |
+
AS_IF([${DIFF} -u conftest-a.c conftest-b.c], [dnl
|
| 93 |
+
AC_MSG_RESULT([yes])
|
| 94 |
+
DIFF_U="$DIFF -u"
|
| 95 |
+
], [dnl
|
| 96 |
+
AC_MSG_RESULT([no])
|
| 97 |
+
])
|
| 98 |
+
rm -f conftest-a.c conftest-b.c
|
| 99 |
+
])
|
| 100 |
+
AC_SUBST([DIFF_U])
|
| 101 |
+
AM_CONDITIONAL([HAVE_DIFF_U], [test "x$DIFF_U" != xno])
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
dnl --------------------------------------------------------------------
|
| 105 |
+
|
| 106 |
+
AC_SYS_LARGEFILE
|
| 107 |
+
|
| 108 |
+
dnl Create a stdint.h-like file containing size-specific integer definitions
|
| 109 |
+
dnl that will always be available
|
| 110 |
+
AX_NEED_STDINT_H([libexif/_stdint.h])
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
dnl ------------------------------------------------------------------------
|
| 114 |
+
dnl Whether we're supposed to ship binaries in the tarball
|
| 115 |
+
dnl ------------------------------------------------------------------------
|
| 116 |
+
|
| 117 |
+
ship_binaries=false
|
| 118 |
+
AC_ARG_ENABLE([ship-binaries],
|
| 119 |
+
[AS_HELP_STRING([--enable-ship-binaries],
|
| 120 |
+
[Whether to ship binaries in the tarball [default=no]])], [
|
| 121 |
+
AS_VAR_IF([enableval], [yes], [ship_binaries=true])
|
| 122 |
+
])
|
| 123 |
+
AM_CONDITIONAL([SHIP_BINARIES], [$ship_binaries])
|
| 124 |
+
GP_CONFIG_MSG([Ship binaries in tarball], [$ship_binaries])
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
dnl ---------------------------------------------------------------------------
|
| 128 |
+
dnl Whether -lm is required for our math functions
|
| 129 |
+
dnl ---------------------------------------------------------------------------
|
| 130 |
+
|
| 131 |
+
# we need sqrt and pow which may be in libm
|
| 132 |
+
# We cannot use AC_CHECK_FUNC because if CFLAGS contains
|
| 133 |
+
# -Wall -Werror here the check fails because
|
| 134 |
+
# char *sqrt() conflicts with double sqrt(double xx)
|
| 135 |
+
|
| 136 |
+
# Start by assuming -lm is needed, because it's possible that the little
|
| 137 |
+
# test program below will be optimized to in-line floating point code that
|
| 138 |
+
# doesn't require -lm, whereas the library itself cannot be so optimized
|
| 139 |
+
# (this actually seems to be the case on x86 with gcc 4.2). Assuming the
|
| 140 |
+
# reverse means that -lm could be needed but wouldn't be detected below.
|
| 141 |
+
|
| 142 |
+
LIBS_orig="$LIBS"
|
| 143 |
+
LIBS="$LIBS -lm"
|
| 144 |
+
AC_MSG_CHECKING([for math functions in libm])
|
| 145 |
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
| 146 |
+
#include <math.h>
|
| 147 |
+
],[
|
| 148 |
+
double s = sqrt(0);
|
| 149 |
+
double p = pow(s,s);
|
| 150 |
+
])],
|
| 151 |
+
[AC_MSG_RESULT([yes])], [
|
| 152 |
+
AC_MSG_RESULT([no])
|
| 153 |
+
LIBS="$LIBS_orig"
|
| 154 |
+
AC_MSG_CHECKING([for math functions without libm])
|
| 155 |
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
| 156 |
+
#include <math.h>
|
| 157 |
+
],[
|
| 158 |
+
double s = sqrt(0);
|
| 159 |
+
double p = pow(s,s);
|
| 160 |
+
])],
|
| 161 |
+
[
|
| 162 |
+
AC_MSG_RESULT([yes])
|
| 163 |
+
],[
|
| 164 |
+
AC_MSG_RESULT([no])
|
| 165 |
+
AC_MSG_ERROR([*** Could not find sqrt() & pow() functions])
|
| 166 |
+
])
|
| 167 |
+
])
|
| 168 |
+
|
| 169 |
+
# Check whether libfailmalloc is available for tests
|
| 170 |
+
CHECK_FAILMALLOC
|
| 171 |
+
|
| 172 |
+
# doc support
|
| 173 |
+
GP_CHECK_DOC_DIR
|
| 174 |
+
GP_CHECK_DOXYGEN
|
| 175 |
+
|
| 176 |
+
# Whether to enable the internal docs build.
|
| 177 |
+
#
|
| 178 |
+
# This takes quite some time due to the generation of lots of call
|
| 179 |
+
# graphs, so it is disabled by default.
|
| 180 |
+
set_enable_internal_docs=no
|
| 181 |
+
AC_ARG_ENABLE([internal-docs], [dnl
|
| 182 |
+
AS_HELP_STRING([--enable-internal-docs],
|
| 183 |
+
[Build internal code docs if doxygen available])], [
|
| 184 |
+
dnl If either --enable-foo nor --disable-foo were given, execute this.
|
| 185 |
+
AS_CASE(["$enableval"],
|
| 186 |
+
[no|off|false], [set_enable_internal_docs=no],
|
| 187 |
+
[yes|on|true], [set_enable_internal_docs=yes])
|
| 188 |
+
])
|
| 189 |
+
AC_MSG_CHECKING([whether to create internal code docs])
|
| 190 |
+
AC_MSG_RESULT([${set_enable_internal_docs}])
|
| 191 |
+
AM_CONDITIONAL([ENABLE_INTERNAL_DOCS],
|
| 192 |
+
[test "x${set_enable_internal_docs}" = "xyes"])
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
# ---------------------------------------------------------------------------
|
| 196 |
+
# i18n support
|
| 197 |
+
# ---------------------------------------------------------------------------
|
| 198 |
+
ALL_LINGUAS="be bs cs da de en_AU en_CA en_GB es fr it ja ms nl pl pt pt_BR ru sk sq sr sv tr uk vi zh_CN"
|
| 199 |
+
AM_PO_SUBDIRS
|
| 200 |
+
GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT_MIN}],
|
| 201 |
+
[Lutz Mueller and others])
|
| 202 |
+
AM_GNU_GETTEXT_VERSION([0.18.3])
|
| 203 |
+
AM_GNU_GETTEXT([external])
|
| 204 |
+
AM_ICONV()
|
| 205 |
+
GP_GETTEXT_FLAGS()
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
dnl ---------------------------------------------------------------------------
|
| 209 |
+
dnl Thread-safe functions
|
| 210 |
+
dnl ---------------------------------------------------------------------------
|
| 211 |
+
AC_MSG_CHECKING([for localtime_s])
|
| 212 |
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
| 213 |
+
#include <time.h>
|
| 214 |
+
]], [[
|
| 215 |
+
localtime_s(NULL, NULL);
|
| 216 |
+
]])], [dnl
|
| 217 |
+
have_localtime_s="yes"
|
| 218 |
+
AC_DEFINE([HAVE_LOCALTIME_S], [1], [Define to 1 if you have localtime_s()])
|
| 219 |
+
], [dnl
|
| 220 |
+
have_localtime_s="no"
|
| 221 |
+
])
|
| 222 |
+
AC_MSG_RESULT([$have_localtime_s])
|
| 223 |
+
|
| 224 |
+
AC_CHECK_FUNCS([localtime_r])
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
dnl ---------------------------------------------------------------------------
|
| 228 |
+
dnl Compiler/Linker Options and Warnings
|
| 229 |
+
dnl ---------------------------------------------------------------------------
|
| 230 |
+
AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
|
| 231 |
+
AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)"
|
| 232 |
+
AM_LDFLAGS="$LDFLAGS"
|
| 233 |
+
AS_VAR_IF([GCC], [yes], [dnl
|
| 234 |
+
AM_CFLAGS="$AM_CFLAGS -ansi -pedantic-error"
|
| 235 |
+
AM_CXXFLAGS="$AM_CXXFLAGS -ansi -pedantic-error"
|
| 236 |
+
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
|
| 237 |
+
AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
|
| 238 |
+
])
|
| 239 |
+
|
| 240 |
+
AC_SUBST([AM_CPPFLAGS])
|
| 241 |
+
AC_SUBST([AM_LDFLAGS])
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
dnl ---------------------------------------------------------------------------
|
| 245 |
+
dnl Output files
|
| 246 |
+
dnl ---------------------------------------------------------------------------
|
| 247 |
+
AC_CONFIG_FILES([
|
| 248 |
+
po/Makefile.in
|
| 249 |
+
Makefile
|
| 250 |
+
libexif.spec
|
| 251 |
+
libexif/Makefile
|
| 252 |
+
test/Makefile
|
| 253 |
+
test/nls/Makefile
|
| 254 |
+
m4m/Makefile
|
| 255 |
+
doc/Makefile
|
| 256 |
+
doc/Doxyfile
|
| 257 |
+
doc/Doxyfile-internals
|
| 258 |
+
libexif.pc
|
| 259 |
+
libexif-uninstalled.pc
|
| 260 |
+
binary-dist/Makefile
|
| 261 |
+
contrib/Makefile
|
| 262 |
+
contrib/examples/Makefile
|
| 263 |
+
])
|
| 264 |
+
AC_OUTPUT
|
| 265 |
+
|
| 266 |
+
GP_CONFIG_OUTPUT
|
local-test-libexif-delta-01-exif-004/afc-libexif/libexif-uninstalled.pc.in
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name: libexif
|
| 2 |
+
Description: Library for easy access to EXIF data
|
| 3 |
+
Version: @VERSION@
|
| 4 |
+
Libs: ${pcfiledir}/libexif/libexif.la
|
| 5 |
+
Cflags: -I${pcfiledir}/@srcdir@ -I${pcfiledir}
|
local-test-libexif-delta-01-exif-004/afc-libexif/libexif.pc.in
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
prefix=@prefix@
|
| 2 |
+
exec_prefix=@exec_prefix@
|
| 3 |
+
libdir=@libdir@
|
| 4 |
+
includedir=@includedir@
|
| 5 |
+
|
| 6 |
+
Name: libexif
|
| 7 |
+
Description: Library for easy access to EXIF data
|
| 8 |
+
Requires:
|
| 9 |
+
Version: @VERSION@
|
| 10 |
+
Libs: -L${libdir} -lexif
|
| 11 |
+
Libs.private: -lm
|
| 12 |
+
Cflags: -I${includedir}
|
local-test-libexif-delta-01-exif-004/afc-libexif/libexif.spec.in
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name: @PACKAGE@
|
| 2 |
+
Summary: EXIF tag library
|
| 3 |
+
Version: @VERSION@
|
| 4 |
+
Release: 1
|
| 5 |
+
Source: https://prdownloads.sourceforge.net/libexif/%{name}-%{version}.tar.bz2
|
| 6 |
+
Url: https://libexif.github.io/
|
| 7 |
+
Group: System Environment/Libraries
|
| 8 |
+
License: LGPL
|
| 9 |
+
# replaced Packager: header, as most people making packages will be somebody
|
| 10 |
+
# else. original spec file author is Mark Pulford <mark@kyne.com.au>
|
| 11 |
+
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
| 12 |
+
Prefix: %{_prefix}
|
| 13 |
+
|
| 14 |
+
%description
|
| 15 |
+
libexif is a library for parsing, editing, and saving EXIF data. It is
|
| 16 |
+
intended to replace lots of redundant implementations in command-line
|
| 17 |
+
utilities and programs with GUIs.
|
| 18 |
+
|
| 19 |
+
%package devel
|
| 20 |
+
Summary: The files needed for libexif application development
|
| 21 |
+
Group: Development/Libraries
|
| 22 |
+
Requires: %{name} = %{version}
|
| 23 |
+
|
| 24 |
+
%description devel
|
| 25 |
+
The libexif-devel package contains the libraries and include files
|
| 26 |
+
that you can use to develop libexif applications.
|
| 27 |
+
|
| 28 |
+
%prep
|
| 29 |
+
%setup
|
| 30 |
+
|
| 31 |
+
%build
|
| 32 |
+
%configure
|
| 33 |
+
make
|
| 34 |
+
|
| 35 |
+
%install
|
| 36 |
+
rm -rf $RPM_BUILD_ROOT
|
| 37 |
+
%makeinstall
|
| 38 |
+
|
| 39 |
+
%clean
|
| 40 |
+
rm -rf $RPM_BUILD_ROOT
|
| 41 |
+
|
| 42 |
+
%files
|
| 43 |
+
%defattr(-,root,root)
|
| 44 |
+
%doc ChangeLog README NEWS AUTHORS COPYING
|
| 45 |
+
%{_libdir}/libexif.so.*
|
| 46 |
+
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
| 47 |
+
|
| 48 |
+
%files devel
|
| 49 |
+
%defattr(-,root,root)
|
| 50 |
+
%{_libdir}/pkgconfig/libexif.pc
|
| 51 |
+
%{_includedir}/libexif
|
| 52 |
+
%{_libdir}/libexif.la
|
| 53 |
+
%{_libdir}/libexif.a
|
| 54 |
+
%{_libdir}/libexif.so
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/CITATION.cff
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
title: OSS-Fuzz
|
| 3 |
+
message: >-
|
| 4 |
+
If you use this software, please cite it using the
|
| 5 |
+
metadata from this file.
|
| 6 |
+
type: software
|
| 7 |
+
authors:
|
| 8 |
+
- given-names: Abhishek
|
| 9 |
+
family-names: Arya
|
| 10 |
+
affiliation: Google LLC
|
| 11 |
+
email: aarya@google.com
|
| 12 |
+
orcid: 'https://orcid.org/0009-0009-4558-4314'
|
| 13 |
+
- given-names: Oliver
|
| 14 |
+
family-names: Chang
|
| 15 |
+
email: ochang@google.com
|
| 16 |
+
affiliation: Google LLC
|
| 17 |
+
orcid: 'https://orcid.org/0009-0006-3181-4551'
|
| 18 |
+
- given-names: Jonathan
|
| 19 |
+
family-names: Metzman
|
| 20 |
+
email: metzman@google.com
|
| 21 |
+
affiliation: Google LLC
|
| 22 |
+
orcid: 'https://orcid.org/0000-0002-7042-0444'
|
| 23 |
+
- given-names: Kostya
|
| 24 |
+
family-names: Serebryany
|
| 25 |
+
email: kcc@google.com
|
| 26 |
+
affiliation: Google LLC
|
| 27 |
+
orcid: 'https://orcid.org/0009-0009-2379-3641'
|
| 28 |
+
- given-names: Dongge
|
| 29 |
+
family-names: Liu
|
| 30 |
+
email: donggeliu@google.com
|
| 31 |
+
affiliation: Google LLC
|
| 32 |
+
orcid: 'https://orcid.org/0000-0003-4821-7033'
|
| 33 |
+
repository-code: 'https://github.com/google/oss-fuzz'
|
| 34 |
+
abstract: >-
|
| 35 |
+
OSS-Fuzz is an open-source project by Google that provides
|
| 36 |
+
continuous fuzzing for open-source software. It aims to
|
| 37 |
+
make common open-source software more secure and stable by
|
| 38 |
+
combining modern fuzzing techniques with scalable,
|
| 39 |
+
distributed execution. As of August 2023, OSS-Fuzz has
|
| 40 |
+
helped identify and fix over 10,000 vulnerabilities and
|
| 41 |
+
36,000 bugs across 1,000 projects.
|
| 42 |
+
keywords:
|
| 43 |
+
- open-source
|
| 44 |
+
- fuzzing
|
| 45 |
+
license: Apache-2.0
|
| 46 |
+
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Want to contribute? Great! First, read this page (including the small print at
|
| 2 |
+
the end).
|
| 3 |
+
|
| 4 |
+
### Before you contribute
|
| 5 |
+
Before we can use your code, you must sign the
|
| 6 |
+
[Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual)
|
| 7 |
+
(CLA), which you can do online. The CLA is necessary mainly because you own the
|
| 8 |
+
copyright to your changes, even after your contribution becomes part of our
|
| 9 |
+
codebase, so we need your permission to use and distribute your code. We also
|
| 10 |
+
need to be sure of various other things: for instance that you'll tell us if you
|
| 11 |
+
know that your code infringes on other people's patents. You don't have to sign
|
| 12 |
+
the CLA until after you've submitted your code for review and a member has
|
| 13 |
+
approved it, but you must do it before we can put your code into our codebase.
|
| 14 |
+
Before you start working on a larger contribution, you should get in touch with
|
| 15 |
+
us first through the issue tracker with your idea so that we can help out and
|
| 16 |
+
possibly guide you. Coordinating up front makes it much easier to avoid
|
| 17 |
+
frustration later on.
|
| 18 |
+
|
| 19 |
+
### Code reviews
|
| 20 |
+
All submissions, including submissions by project members, require review. We
|
| 21 |
+
use GitHub pull requests for this purpose.
|
| 22 |
+
|
| 23 |
+
### The small print
|
| 24 |
+
Contributions made by corporations are covered by a different agreement than
|
| 25 |
+
the one above, the
|
| 26 |
+
[Software Grant and Corporate Contributor License Agreement](https://cla.developers.google.com/about/google-corporate).
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright {yyyy} {name of copyright owner}
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OSS-Fuzz-AIxCC: AIxCC AFC Competition fork of OSS-Fuzz (v1.2.0)
|
| 2 |
+
|
| 3 |
+
Changes in v1.2.0:
|
| 4 |
+
|
| 5 |
+
- `base-builder-jvm` has been updated to use the lastest aixcc-jazzer ref, adjusting the OsCmdInjection sanitizer.
|
| 6 |
+
- This adjustment adds some safety measures around OsCmdInjection to reduce risk and reduce potential
|
| 7 |
+
unintentional crash-state explosion when dealing with such vulnerabilities.
|
| 8 |
+
- `helper.py` commands `build_image`, `build_fuzzers`, and `shell` have added optional flags to control docker image tags.
|
| 9 |
+
- Adds the flag `--docker_image_tag TAG` to the commands. This is entirely optional and backwards
|
| 10 |
+
compatible, but can allow control over the project-image docker tag, enabling easier parallel processing.
|
| 11 |
+
- `helper.py reproduce` has an added optional flag to reproduce with docker running in non-privileged mode.
|
| 12 |
+
- `helper.py reproduce` has an added optional flag to timeout when the reproduce subprocess hangs.
|
| 13 |
+
- This enables crash detection to handle cases where sanitizers are hit, yet for various reasons the
|
| 14 |
+
reproduce subprocess does not resolve and hangs indefinitely. If `timeout` is set, when the reproduce
|
| 15 |
+
subprocess does not resolve within `timeout` seconds, reproduce will end the subprocess and return with code 124.
|
| 16 |
+
|
| 17 |
+
Changes in v1.1.0:
|
| 18 |
+
|
| 19 |
+
- The state of oss-fuzz-aixcc has been synced with upstream changes at 162f2ab818f5992b66486a4d06cb0e3c88c37773.
|
| 20 |
+
- `helper.py build_fuzzers` with local source now matches behavior of non-local source, keeping the build state clean between runs.
|
| 21 |
+
- `base-image` has been updated to default its locale to C.UTF-8 instead of POSIX.
|
| 22 |
+
|
| 23 |
+
This is a competition fork of oss-fuzz which is guaranteed to be
|
| 24 |
+
compatible with the AFC challenges. This fork is designed to remain
|
| 25 |
+
fully backwards compatible with the public/upstream oss-fuzz, and
|
| 26 |
+
thus competition challenges will reflect realistic real-world repositories.
|
| 27 |
+
|
| 28 |
+
***Other than base-image changes, the projects files have not been touched
|
| 29 |
+
in this repository. The list of projects in the projects directory does
|
| 30 |
+
not reflect which projects will be used in any AFC round.***
|
| 31 |
+
|
| 32 |
+
Competitors are recommended to test their CRS against public repositories using this competition fork.
|
| 33 |
+
Competitors are recommended to view the [example-crs-architecture] repository's
|
| 34 |
+
[example-challenge-evaluation] scripts to see details on how this fuzz tooling is used during competition.
|
| 35 |
+
|
| 36 |
+
[example-crs-arhictecture]: https://github.com/aixcc-finals/example-crs-architecture
|
| 37 |
+
[example-challenge-evaluation]: https://github.com/aixcc-finals/example-crs-architecture/tree/main/example-challenge-evaluation
|
| 38 |
+
|
| 39 |
+
Example basic usage of the helper script is below. **Note: When working with local source, you must pass the local
|
| 40 |
+
source repository into the scripts as detailed below.**
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
# Build the project image and pull AFC base images
|
| 44 |
+
infra/helper.py build_image --pull <project_name>
|
| 45 |
+
|
| 46 |
+
# Build the fuzzer harnesses for the project, using local source
|
| 47 |
+
infra/helper.py build_fuzzers --clean --sanitizer <sanitizer> --engine <engine> <project_name> <path-to-local-src>
|
| 48 |
+
|
| 49 |
+
# Check all fuzzer harnesses for build
|
| 50 |
+
infra/helper.py check_build --sanitizer <sanitizer> --engine <engine> <project_name>
|
| 51 |
+
|
| 52 |
+
# Reproduce the testcase
|
| 53 |
+
# optionally use --propagate_exit_codes
|
| 54 |
+
infra/helper.py reproduce <project_name> <harness_name> <path-to-data-blob>
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
# OSS-Fuzz: Continuous Fuzzing for Open Source Software
|
| 60 |
+
|
| 61 |
+
[Fuzz testing] is a well-known technique for uncovering programming errors in
|
| 62 |
+
software. Many of these detectable errors, like [buffer overflow], can have
|
| 63 |
+
serious security implications. Google has found [thousands] of security
|
| 64 |
+
vulnerabilities and stability bugs by deploying [guided in-process fuzzing of
|
| 65 |
+
Chrome components], and we now want to share that service with the open source
|
| 66 |
+
community.
|
| 67 |
+
|
| 68 |
+
[Fuzz testing]: https://en.wikipedia.org/wiki/Fuzz_testing
|
| 69 |
+
[buffer overflow]: https://en.wikipedia.org/wiki/Buffer_overflow
|
| 70 |
+
[thousands]: https://issues.chromium.org/issues?q=label:Stability-LibFuzzer%20-status:Duplicate,WontFix
|
| 71 |
+
[guided in-process fuzzing of Chrome components]: https://security.googleblog.com/2016/08/guided-in-process-fuzzing-of-chrome.html
|
| 72 |
+
|
| 73 |
+
In cooperation with the [Core Infrastructure Initiative] and the [OpenSSF],
|
| 74 |
+
OSS-Fuzz aims to make common open source software more secure and stable by
|
| 75 |
+
combining modern fuzzing techniques with scalable, distributed execution.
|
| 76 |
+
Projects that do not qualify for OSS-Fuzz (e.g. closed source) can run their own
|
| 77 |
+
instances of [ClusterFuzz] or [ClusterFuzzLite].
|
| 78 |
+
|
| 79 |
+
[Core Infrastructure Initiative]: https://www.coreinfrastructure.org/
|
| 80 |
+
[OpenSSF]: https://www.openssf.org/
|
| 81 |
+
|
| 82 |
+
We support the [libFuzzer], [AFL++], and [Honggfuzz] fuzzing engines in
|
| 83 |
+
combination with [Sanitizers], as well as [ClusterFuzz], a distributed fuzzer
|
| 84 |
+
execution environment and reporting tool.
|
| 85 |
+
|
| 86 |
+
[libFuzzer]: https://llvm.org/docs/LibFuzzer.html
|
| 87 |
+
[AFL++]: https://github.com/AFLplusplus/AFLplusplus
|
| 88 |
+
[Honggfuzz]: https://github.com/google/honggfuzz
|
| 89 |
+
[Sanitizers]: https://github.com/google/sanitizers
|
| 90 |
+
[ClusterFuzz]: https://github.com/google/clusterfuzz
|
| 91 |
+
[ClusterFuzzLite]: https://google.github.io/clusterfuzzlite/
|
| 92 |
+
|
| 93 |
+
Currently, OSS-Fuzz supports C/C++, Rust, Go, Python, Java/JVM, and JavaScript code. Other languages
|
| 94 |
+
supported by [LLVM] may work too. OSS-Fuzz supports fuzzing x86_64 and i386
|
| 95 |
+
builds.
|
| 96 |
+
|
| 97 |
+
[LLVM]: https://llvm.org
|
| 98 |
+
|
| 99 |
+
## Overview
|
| 100 |
+

|
| 101 |
+
|
| 102 |
+
## Documentation
|
| 103 |
+
Read our [detailed documentation] to learn how to use OSS-Fuzz.
|
| 104 |
+
|
| 105 |
+
[detailed documentation]: https://google.github.io/oss-fuzz
|
| 106 |
+
|
| 107 |
+
## Trophies
|
| 108 |
+
As of August 2023, OSS-Fuzz has helped identify and fix over [10,000] vulnerabilities and [36,000] bugs across [1,000] projects.
|
| 109 |
+
|
| 110 |
+
[10,000]: https://bugs.chromium.org/p/oss-fuzz/issues/list?q=Type%3DBug-Security%20label%3Aclusterfuzz%20-status%3ADuplicate%2CWontFix&can=1
|
| 111 |
+
[36,000]: https://bugs.chromium.org/p/oss-fuzz/issues/list?q=Type%3DBug%20label%3Aclusterfuzz%20-status%3ADuplicate%2CWontFix&can=1
|
| 112 |
+
[1,000]: https://github.com/google/oss-fuzz/tree/master/projects
|
| 113 |
+
|
| 114 |
+
## Blog posts
|
| 115 |
+
* 2023-08-16 - [AI-Powered Fuzzing: Breaking the Bug Hunting Barrier]
|
| 116 |
+
* 2023-02-01 - [Taking the next step: OSS-Fuzz in 2023]
|
| 117 |
+
* 2022-09-08 - [Fuzzing beyond memory corruption: Finding broader classes of vulnerabilities automatically]
|
| 118 |
+
* 2021-12-16 - [Improving OSS-Fuzz and Jazzer to catch Log4Shell]
|
| 119 |
+
* 2021-03-10 - [Fuzzing Java in OSS-Fuzz]
|
| 120 |
+
* 2020-12-07 - [Improving open source security during the Google summer internship program]
|
| 121 |
+
* 2020-10-09 - [Fuzzing internships for Open Source Software]
|
| 122 |
+
* 2018-11-06 - [A New Chapter for OSS-Fuzz]
|
| 123 |
+
* 2017-05-08 - [OSS-Fuzz: Five months later, and rewarding projects]
|
| 124 |
+
* 2016-12-01 - [Announcing OSS-Fuzz: Continuous fuzzing for open source software]
|
| 125 |
+
|
| 126 |
+
[AI-Powered Fuzzing: Breaking the Bug Hunting Barrier]: https://security.googleblog.com/2023/08/ai-powered-fuzzing-breaking-bug-hunting.html
|
| 127 |
+
[Announcing OSS-Fuzz: Continuous fuzzing for open source software]: https://opensource.googleblog.com/2016/12/announcing-oss-fuzz-continuous-fuzzing.html
|
| 128 |
+
[OSS-Fuzz: Five months later, and rewarding projects]: https://opensource.googleblog.com/2017/05/oss-fuzz-five-months-later-and.html
|
| 129 |
+
[A New Chapter for OSS-Fuzz]: https://security.googleblog.com/2018/11/a-new-chapter-for-oss-fuzz.html
|
| 130 |
+
[Fuzzing internships for Open Source Software]: https://security.googleblog.com/2020/10/fuzzing-internships-for-open-source.html
|
| 131 |
+
[Improving open source security during the Google summer internship program]: https://security.googleblog.com/2020/12/improving-open-source-security-during.html
|
| 132 |
+
[Fuzzing Java in OSS-Fuzz]: https://security.googleblog.com/2021/03/fuzzing-java-in-oss-fuzz.html
|
| 133 |
+
[Improving OSS-Fuzz and Jazzer to catch Log4Shell]: https://security.googleblog.com/2021/12/improving-oss-fuzz-and-jazzer-to-catch.html
|
| 134 |
+
[Fuzzing beyond memory corruption: Finding broader classes of vulnerabilities automatically]: https://security.googleblog.com/2022/09/fuzzing-beyond-memory-corruption.html
|
| 135 |
+
[Taking the next step: OSS-Fuzz in 2023]: https://security.googleblog.com/2023/02/taking-next-step-oss-fuzz-in-2023.html
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/404.html
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
layout: default
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
<style type="text/css" media="screen">
|
| 6 |
+
.container {
|
| 7 |
+
margin: 10px auto;
|
| 8 |
+
max-width: 600px;
|
| 9 |
+
text-align: center;
|
| 10 |
+
}
|
| 11 |
+
h1 {
|
| 12 |
+
margin: 30px 0;
|
| 13 |
+
font-size: 4em;
|
| 14 |
+
line-height: 1;
|
| 15 |
+
letter-spacing: -1px;
|
| 16 |
+
}
|
| 17 |
+
</style>
|
| 18 |
+
|
| 19 |
+
<div class="container">
|
| 20 |
+
<h1>404</h1>
|
| 21 |
+
|
| 22 |
+
<p><strong>Page not found :(</strong></p>
|
| 23 |
+
</div>
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/Gemfile
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
source "https://rubygems.org"
|
| 2 |
+
gem 'github-pages', group: :jekyll_plugins
|
| 3 |
+
|
| 4 |
+
gem "webrick", "~> 1.8"
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Readme
|
| 2 |
+
|
| 3 |
+
Use the following instructions to make documentation changes locally.
|
| 4 |
+
|
| 5 |
+
## Prerequisites
|
| 6 |
+
```bash
|
| 7 |
+
$ sudo apt install ruby bundler
|
| 8 |
+
$ bundle config set path 'vendor/bundle'
|
| 9 |
+
$ bundle install
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
## Serving locally
|
| 13 |
+
```bash
|
| 14 |
+
$ bundle exec jekyll serve
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Theme documentation
|
| 18 |
+
We are using the [just the docs](https://just-the-docs.github.io/just-the-docs/)
|
| 19 |
+
theme.
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/_config.yml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Welcome to Jekyll!
|
| 2 |
+
#
|
| 3 |
+
# This config file is meant for settings that affect your whole blog, values
|
| 4 |
+
# which you are expected to set up once and rarely edit after that. If you find
|
| 5 |
+
# yourself editing this file very often, consider using Jekyll's data files
|
| 6 |
+
# feature for the data you need to update frequently.
|
| 7 |
+
#
|
| 8 |
+
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
| 9 |
+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
| 10 |
+
|
| 11 |
+
# Site settings
|
| 12 |
+
# These are used to personalize your new site. If you look in the HTML files,
|
| 13 |
+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
| 14 |
+
# You can create any custom variable you would like, and they will be accessible
|
| 15 |
+
# in the templates via {{ site.myvariable }}.
|
| 16 |
+
title: OSS-Fuzz
|
| 17 |
+
description: Documentation for OSS-Fuzz
|
| 18 |
+
baseurl: "/oss-fuzz" # the subpath of your site, e.g. /blog
|
| 19 |
+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
| 20 |
+
|
| 21 |
+
# Build settings
|
| 22 |
+
markdown: kramdown
|
| 23 |
+
remote_theme: pmarsceill/just-the-docs
|
| 24 |
+
search_enabled: true
|
| 25 |
+
|
| 26 |
+
ga_tracking: G-LRX1V3S5P
|
| 27 |
+
|
| 28 |
+
aux_links:
|
| 29 |
+
"OSS-Fuzz on GitHub":
|
| 30 |
+
- https://github.com/google/oss-fuzz
|
| 31 |
+
|
| 32 |
+
# Exclude from processing.
|
| 33 |
+
exclude:
|
| 34 |
+
- Gemfile
|
| 35 |
+
- Gemfile.lock
|
| 36 |
+
- node_modules
|
| 37 |
+
- vendor/bundle/
|
| 38 |
+
- vendor/cache/
|
| 39 |
+
- vendor/gems/
|
| 40 |
+
- vendor/ruby/
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/faq.md
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
layout: default
|
| 3 |
+
title: FAQ
|
| 4 |
+
nav_order: 7
|
| 5 |
+
permalink: /faq/
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Frequently Asked Questions
|
| 9 |
+
|
| 10 |
+
- TOC
|
| 11 |
+
{:toc}
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## Where can I learn more about fuzzing?
|
| 15 |
+
|
| 16 |
+
We recommend reading [libFuzzer tutorial] and the other docs in [google/fuzzing]
|
| 17 |
+
repository. These and some other resources are listed on the
|
| 18 |
+
[useful links]({{ site.baseurl }}/reference/useful-links/#tutorials) page.
|
| 19 |
+
|
| 20 |
+
[google/fuzzing]: https://github.com/google/fuzzing/tree/master/docs
|
| 21 |
+
[libFuzzer tutorial]: https://github.com/google/fuzzing/blob/master/tutorial/libFuzzerTutorial.md
|
| 22 |
+
|
| 23 |
+
## What kind of projects are you accepting?
|
| 24 |
+
|
| 25 |
+
We accept established projects that have a critical impact on infrastructure and
|
| 26 |
+
user security. We will consider each request on a case-by-case basis, but some
|
| 27 |
+
things we keep in mind are:
|
| 28 |
+
|
| 29 |
+
- Exposure to remote attacks (e.g. libraries that are used to process
|
| 30 |
+
untrusted input).
|
| 31 |
+
- Number of users/other projects depending on this project.
|
| 32 |
+
|
| 33 |
+
We hope to relax this requirement in the future though, so keep an eye out even
|
| 34 |
+
if we are not able to accept your project at this time!
|
| 35 |
+
|
| 36 |
+
## How can I find potential fuzz targets in my open source project?
|
| 37 |
+
|
| 38 |
+
You should look for places in your code that:
|
| 39 |
+
|
| 40 |
+
- consume un-trusted data from users or from the network.
|
| 41 |
+
- consume complex input data even if it's 'trusted'.
|
| 42 |
+
- use an algorithm that has two or more implementations
|
| 43 |
+
(to verify their equivalence).
|
| 44 |
+
- look for existing fuzz target [examples](https://github.com/google/oss-fuzz/tree/master/projects)
|
| 45 |
+
and find similarities.
|
| 46 |
+
|
| 47 |
+
## Where can I store fuzz target sources and the build script if it's not yet accepted upstream?
|
| 48 |
+
|
| 49 |
+
Fuzz target sources as well as the build script may temporarily live inside the
|
| 50 |
+
`projects/<your_project>` directory in the OSS-Fuzz repository. Note that we do
|
| 51 |
+
not accept integrations that rely on forked repositories. Refer to the
|
| 52 |
+
[ideal integration guide] for the preferred long term solution.
|
| 53 |
+
|
| 54 |
+
## My project is not open source. Can I use OSS-Fuzz?
|
| 55 |
+
|
| 56 |
+
You cannot use OSS-Fuzz, but you can use [ClusterFuzz] which OSS-Fuzz is based
|
| 57 |
+
on. ClusterFuzz is an open-source fuzzing infrastructure that you can deploy in
|
| 58 |
+
your own environment and run continuously at scale.
|
| 59 |
+
|
| 60 |
+
OSS-Fuzz is a production instance of ClusterFuzz, plus the code living in
|
| 61 |
+
[OSS-Fuzz repository]: build scripts, `project.yaml` files with contacts, etc.
|
| 62 |
+
|
| 63 |
+
[OSS-Fuzz repository]: https://github.com/google/oss-fuzz
|
| 64 |
+
|
| 65 |
+
## Why do you use a [different issue tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list) for reporting bugs in OSS projects?
|
| 66 |
+
|
| 67 |
+
Security access control is important for the kind of issues that OSS-Fuzz detects,
|
| 68 |
+
hence why by default issues are only opened on the OSS-Fuzz tracker.
|
| 69 |
+
You can opt-in to have them on Github as well by adding the `file_github_issue`
|
| 70 |
+
attribute to your `project.yaml` file. Note that this is only for visibility's
|
| 71 |
+
purpose, and that the actual details can be found by following the link to the
|
| 72 |
+
OSS-Fuzz tracker.
|
| 73 |
+
|
| 74 |
+
## Why do you require a Google account for authentication?
|
| 75 |
+
|
| 76 |
+
Our [ClusterFuzz]({{ site.baseurl }}/further-reading/clusterfuzz) fuzzing
|
| 77 |
+
infrastructure and [issue tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list)
|
| 78 |
+
require a Google account for authentication. Note that an alternate email
|
| 79 |
+
address associated with a Google account does not work due to appengine api
|
| 80 |
+
limitations.
|
| 81 |
+
|
| 82 |
+
## Why do you use Docker?
|
| 83 |
+
|
| 84 |
+
Building fuzzers requires building your project with a fresh Clang compiler and
|
| 85 |
+
special compiler flags. An easy-to-use Docker image is provided to simplify
|
| 86 |
+
toolchain distribution. This also simplifies our support for a variety of Linux
|
| 87 |
+
distributions and provides a reproducible environment for fuzzer
|
| 88 |
+
building and execution.
|
| 89 |
+
|
| 90 |
+
## How do you handle timeouts and OOMs?
|
| 91 |
+
|
| 92 |
+
If a single input to a [fuzz target]({{ site.baseurl }}/reference/glossary/#fuzz-target)
|
| 93 |
+
requires more than **~25 seconds** or more than **2.5GB RAM** to process, we
|
| 94 |
+
report this as a timeout or an OOM (out-of-memory) bug
|
| 95 |
+
(examples: [timeouts](https://bugs.chromium.org/p/oss-fuzz/issues/list?can=1&q=%22Crash+Type%3A+Timeout%22),
|
| 96 |
+
[OOMs](https://bugs.chromium.org/p/oss-fuzz/issues/list?can=1&q="Crash+Type%3A+Out-of-memory")).
|
| 97 |
+
This may or may not be considered as a real bug by the project owners,
|
| 98 |
+
but nevertheless we treat all timeouts and OOMs as bugs
|
| 99 |
+
since they significantly reduce the efficiency of fuzzing.
|
| 100 |
+
|
| 101 |
+
Remember that fuzzing is executed with AddressSanitizer or other
|
| 102 |
+
sanitizers which introduces a certain overhead in RAM and CPU.
|
| 103 |
+
|
| 104 |
+
We currently do not have a good way to deduplicate timeout or OOM bugs.
|
| 105 |
+
So, we report only one timeout and only one OOM bug per fuzz target.
|
| 106 |
+
Once that bug is fixed, we will file another one, and so on.
|
| 107 |
+
|
| 108 |
+
Currently we do not offer ways to change the memory and time limits.
|
| 109 |
+
|
| 110 |
+
## Can I launch an additional process (e.g. a daemon) from my fuzz target?
|
| 111 |
+
|
| 112 |
+
No. In order to get all the benefits of in-process, coverage-guided fuzz testing,
|
| 113 |
+
it is required to run everything inside a single process. Any child processes
|
| 114 |
+
created outside the main process introduces heavy launch overhead and is not
|
| 115 |
+
monitored for code coverage.
|
| 116 |
+
|
| 117 |
+
Another rule of thumb is: "the smaller fuzz target is, the better it is". It is
|
| 118 |
+
expected that your project will have many fuzz targets to test different
|
| 119 |
+
components, instead of a single fuzz target trying to cover everything.
|
| 120 |
+
Think of fuzz target as a unit test, though it is much more powerful since it
|
| 121 |
+
helps to test millions of data permutations rather than just one.
|
| 122 |
+
|
| 123 |
+
## What if my fuzz target finds a bug in another project (dependency) ?
|
| 124 |
+
|
| 125 |
+
Every bug report has a crash stack-trace that shows where the crash happened.
|
| 126 |
+
Using that, you can debug the root cause and see which category the bug falls in:
|
| 127 |
+
|
| 128 |
+
- If this is a bug is due to an incorrect usage of the dependent project's API
|
| 129 |
+
in your project, then you need to fix your usage to call the API correctly.
|
| 130 |
+
- If this is a real bug in the dependent project, then you should CC the
|
| 131 |
+
maintainers of that project on the bug. Once CCed, they will get automatic
|
| 132 |
+
access to all the information necessary to reproduce the issue. If this project
|
| 133 |
+
is maintained in OSS-Fuzz, you can search for contacts in the respective
|
| 134 |
+
project.yaml file.
|
| 135 |
+
|
| 136 |
+
## What if my fuzzer does not find anything?
|
| 137 |
+
|
| 138 |
+
If your fuzz target is running for many days and does not find bugs or new
|
| 139 |
+
coverage, it may mean several things:
|
| 140 |
+
- We've covered all reachable code. In order to cover more code we need more
|
| 141 |
+
fuzz targets.
|
| 142 |
+
- The [seed corpus]({{ site.baseurl }}/getting-started/new-project-guide#seed-corpus) is not good enough and the
|
| 143 |
+
fuzzing engine(s) are not able to go deeper based on the existing seeds.
|
| 144 |
+
Need to add more seeds.
|
| 145 |
+
- There is some crypto/crc stuff in the code that will prevent any fuzzing
|
| 146 |
+
engine from going deeper, in which case the crypto should be disabled in
|
| 147 |
+
[fuzzing mode](https://llvm.org/docs/LibFuzzer.html#fuzzer-friendly-build-mode).
|
| 148 |
+
Examples: [openssl](https://github.com/openssl/openssl/tree/master/fuzz#reproducing-issues),
|
| 149 |
+
[boringssl](https://boringssl.googlesource.com/boringssl/+/HEAD/FUZZING.md#Fuzzer-mode)
|
| 150 |
+
- It is also possible that the fuzzer is running too slow
|
| 151 |
+
(you may check the speed of your targets at https://oss-fuzz.com/)
|
| 152 |
+
|
| 153 |
+
In either case, look at the
|
| 154 |
+
[coverage reports]({{ site.baseurl }}/further-reading/clusterfuzz#coverage-reports)
|
| 155 |
+
for your target(s) and figure out why some parts of the code are not covered.
|
| 156 |
+
|
| 157 |
+
## What if my fuzzer does not find new coverage or bugs after a while?
|
| 158 |
+
|
| 159 |
+
It is common for fuzzers to plateau and stop finding new coverage or bugs.
|
| 160 |
+
[Fuzz Introspector](https://github.com/ossf/fuzz-introspector) helps you
|
| 161 |
+
evaluate your fuzzers' performance.
|
| 162 |
+
It can help you identify bottlenecks causing your fuzzers to plateau.
|
| 163 |
+
It provides aggregated and individual fuzzer reachability and coverage reports.
|
| 164 |
+
Developers can either introduce a new fuzz target or modify an existing one to
|
| 165 |
+
reach previously unreachable code.
|
| 166 |
+
Here are
|
| 167 |
+
[case studies](https://github.com/ossf/fuzz-introspector/blob/main/doc/CaseStudies.md)
|
| 168 |
+
where Fuzz Introspector helped developers improve fuzzing of a project.
|
| 169 |
+
Fuzz Introspector reports are available on the [OSS-Fuzz homepage](https://oss-fuzz.com/)
|
| 170 |
+
or through this [index](http://oss-fuzz-introspector.storage.googleapis.com/index.html).
|
| 171 |
+
|
| 172 |
+
Developers can also use Fuzz Introspector on their local machines.
|
| 173 |
+
Detailed instructions are available
|
| 174 |
+
[here](https://github.com/ossf/fuzz-introspector/tree/main/oss_fuzz_integration#build-fuzz-introspector-with-oss-fuzz).
|
| 175 |
+
|
| 176 |
+
## Why are code coverage reports public?
|
| 177 |
+
|
| 178 |
+
We work with open source projects and try to keep as much information public as
|
| 179 |
+
possible. We believe that public code coverage reports do not put users at risk,
|
| 180 |
+
as they do not indicate the presence of bugs or lack thereof.
|
| 181 |
+
|
| 182 |
+
## Why is the coverage command complaining about format compatibility issues?
|
| 183 |
+
|
| 184 |
+
This may happen if the Docker images fetched locally become out of sync. Make
|
| 185 |
+
sure you run the following command to pull the most recent images:
|
| 186 |
+
|
| 187 |
+
```bash
|
| 188 |
+
$ python infra/helper.py pull_images
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
Please refer to
|
| 192 |
+
[code coverage]({{ site.baseurl }}/advanced-topics/code-coverage/) for detailed
|
| 193 |
+
information on code coverage generation.
|
| 194 |
+
|
| 195 |
+
## What happens when I rename a fuzz target ?
|
| 196 |
+
|
| 197 |
+
If you rename your fuzz targets, the existing bugs for those targets will get
|
| 198 |
+
closed and fuzzing will start from scratch from a fresh corpora
|
| 199 |
+
(seed corpus only). Similar corpora will get accumulated over time depending on
|
| 200 |
+
the number of cpu cycles that original fuzz target has run. If this is not
|
| 201 |
+
desirable, make sure to copy the accumulated corpora from the original fuzz
|
| 202 |
+
target (instructions to download
|
| 203 |
+
[here]({{ site.baseurl }}/advanced-topics/corpora/#downloading-the-corpus)) and
|
| 204 |
+
restore it to the new GCS location later (instruction to find the
|
| 205 |
+
new location [here]({{ site.baseurl }}/advanced-topics/corpora/#viewing-the-corpus-for-a-fuzz-target)).
|
| 206 |
+
|
| 207 |
+
## Does OSS-Fuzz support AFL or honggfuzz or Centipede?
|
| 208 |
+
|
| 209 |
+
OSS-Fuzz *uses* the following
|
| 210 |
+
[fuzzing engines]({{ site.baseurl }}/reference/glossary/#fuzzing-engine):
|
| 211 |
+
|
| 212 |
+
1. [libFuzzer](https://llvm.org/docs/LibFuzzer.html).
|
| 213 |
+
1. [AFL++](https://github.com/AFLplusplus/AFLplusplus), an improved and
|
| 214 |
+
well-maintained version of [AFL](https://lcamtuf.coredump.cx/afl/).
|
| 215 |
+
1. [Honggfuzz](https://github.com/google/honggfuzz).
|
| 216 |
+
1. [Centipede (Experimental)](https://github.com/google/centipede).
|
| 217 |
+
|
| 218 |
+
Follow the [new project guide] and OSS-Fuzz will use all its fuzzing engines
|
| 219 |
+
on your code.
|
| 220 |
+
|
| 221 |
+
## What are the specs on your machines?
|
| 222 |
+
|
| 223 |
+
OSS-Fuzz builders have 32CPU/28.8GB RAM.
|
| 224 |
+
|
| 225 |
+
Fuzzing machines only have a single core and fuzz targets should not use more
|
| 226 |
+
than 2.5GB of RAM.
|
| 227 |
+
|
| 228 |
+
## Are there any restrictions on using test cases / corpora generated by OSS-Fuzz?
|
| 229 |
+
|
| 230 |
+
No, you can freely use (i.e. share, add to your repo, etc.) the test cases and
|
| 231 |
+
corpora generated by OSS-Fuzz. OSS-Fuzz infrastructure is fully open source
|
| 232 |
+
(including [ClusterFuzz], various fuzzing engines, and other dependencies). We
|
| 233 |
+
have no intent to restrict the use of the artifacts produced by OSS-Fuzz.
|
| 234 |
+
|
| 235 |
+
[ClusterFuzz]: https://github.com/google/clusterfuzz
|
| 236 |
+
[new project guide]: {{ site.baseurl }}/getting-started/new-project-guide/
|
| 237 |
+
[ideal integration guide]: {{ site.baseurl }}/getting-started/new-project-guide/
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/favicon.ico
ADDED
|
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/ideal_integration.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
This page has moved [here](https://google.github.io/oss-fuzz/advanced-topics/ideal-integration)
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/index.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
layout: default
|
| 3 |
+
title: OSS-Fuzz
|
| 4 |
+
permalink: /
|
| 5 |
+
nav_order: 1
|
| 6 |
+
has_children: true
|
| 7 |
+
has_toc: false
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# OSS-Fuzz
|
| 11 |
+
|
| 12 |
+
[Fuzz testing] is a well-known technique for uncovering programming errors in
|
| 13 |
+
software. Many of these detectable errors, like [buffer overflow], can have
|
| 14 |
+
serious security implications. Google has found [thousands] of security
|
| 15 |
+
vulnerabilities and stability bugs by deploying [guided in-process fuzzing of
|
| 16 |
+
Chrome components], and we now want to share that service with the open source
|
| 17 |
+
community.
|
| 18 |
+
|
| 19 |
+
[Fuzz testing]: https://en.wikipedia.org/wiki/Fuzz_testing
|
| 20 |
+
[buffer overflow]: https://en.wikipedia.org/wiki/Buffer_overflow
|
| 21 |
+
[thousands]: https://bugs.chromium.org/p/chromium/issues/list?q=label%3AStability-LibFuzzer%2CStability-AFL%20-status%3ADuplicate%2CWontFix&can=1
|
| 22 |
+
[guided in-process fuzzing of Chrome components]: https://security.googleblog.com/2016/08/guided-in-process-fuzzing-of-chrome.html
|
| 23 |
+
|
| 24 |
+
In cooperation with the [Core Infrastructure Initiative] and the [OpenSSF],
|
| 25 |
+
OSS-Fuzz aims to make common open source software more secure and stable by
|
| 26 |
+
combining modern fuzzing techniques with scalable, distributed execution.
|
| 27 |
+
Projects that do not qualify for OSS-Fuzz (e.g. closed source) can run their own
|
| 28 |
+
instances of [ClusterFuzz] or [ClusterFuzzLite].
|
| 29 |
+
|
| 30 |
+
[Core Infrastructure Initiative]: https://www.coreinfrastructure.org/
|
| 31 |
+
[OpenSSF]: https://www.openssf.org/
|
| 32 |
+
|
| 33 |
+
We support the [libFuzzer], [AFL++], [Honggfuzz], and [Centipede] fuzzing engines in
|
| 34 |
+
combination with [Sanitizers], as well as [ClusterFuzz], a distributed fuzzer
|
| 35 |
+
execution environment and reporting tool.
|
| 36 |
+
|
| 37 |
+
[libFuzzer]: https://llvm.org/docs/LibFuzzer.html
|
| 38 |
+
[AFL++]: https://github.com/AFLplusplus/AFLplusplus
|
| 39 |
+
[Honggfuzz]: https://github.com/google/honggfuzz
|
| 40 |
+
[Centipede]: https://github.com/google/centipede
|
| 41 |
+
[Sanitizers]: https://github.com/google/sanitizers
|
| 42 |
+
[ClusterFuzz]: https://github.com/google/clusterfuzz
|
| 43 |
+
[ClusterFuzzLite]: https://google.github.io/clusterfuzzlite/
|
| 44 |
+
|
| 45 |
+
Currently, OSS-Fuzz supports C/C++, Rust, Go, Python and Java/JVM code. Other
|
| 46 |
+
languages supported by [LLVM] may work too. OSS-Fuzz supports fuzzing x86_64
|
| 47 |
+
and i386 builds.
|
| 48 |
+
|
| 49 |
+
[LLVM]: https://llvm.org
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
## Project history
|
| 53 |
+
OSS-Fuzz was launched in 2016 in response to the
|
| 54 |
+
[Heartbleed] vulnerability, discovered in [OpenSSL], one of the
|
| 55 |
+
most popular open source projects for encrypting web traffic. The vulnerability
|
| 56 |
+
had the potential to affect almost every internet user, yet was caused by a
|
| 57 |
+
relatively simple memory buffer overflow bug that could have been detected by
|
| 58 |
+
fuzzing—that is, by running the code on randomized inputs to intentionally cause
|
| 59 |
+
unexpected behaviors or crashes. At the time, though, fuzzing
|
| 60 |
+
was not widely used and was cumbersome for developers, requiring extensive
|
| 61 |
+
manual effort.
|
| 62 |
+
|
| 63 |
+
Google created OSS-Fuzz to fill this gap: it's a free service that runs fuzzers
|
| 64 |
+
for open source projects and privately alerts developers to the bugs detected.
|
| 65 |
+
Since its launch, OSS-Fuzz has become a critical service for the open source
|
| 66 |
+
community, growing beyond C/C++ to
|
| 67 |
+
detect problems in memory-safe languages such as Go, Rust, and Python.
|
| 68 |
+
|
| 69 |
+
[Heartbleed]: https://heartbleed.com/
|
| 70 |
+
[OpenSSL]: https://www.openssl.org/
|
| 71 |
+
|
| 72 |
+
## Learn more about fuzzing
|
| 73 |
+
|
| 74 |
+
This documentation describes how to use OSS-Fuzz service for your open source
|
| 75 |
+
project. To learn more about fuzzing in general, we recommend reading [libFuzzer
|
| 76 |
+
tutorial] and the other docs in [google/fuzzing] repository. These and some
|
| 77 |
+
other resources are listed on the [useful links] page.
|
| 78 |
+
|
| 79 |
+
[google/fuzzing]: https://github.com/google/fuzzing/tree/master/docs
|
| 80 |
+
[libFuzzer tutorial]: https://github.com/google/fuzzing/blob/master/tutorial/libFuzzerTutorial.md
|
| 81 |
+
[useful links]: {{ site.baseurl }}/reference/useful-links/#tutorials
|
| 82 |
+
|
| 83 |
+
## Trophies
|
| 84 |
+
As of August 2023, OSS-Fuzz has helped identify and fix over [10,000] vulnerabilities and [36,000] bugs across [1,000] projects.
|
| 85 |
+
|
| 86 |
+
[10,000]: https://bugs.chromium.org/p/oss-fuzz/issues/list?q=Type%3DBug-Security%20label%3Aclusterfuzz%20-status%3ADuplicate%2CWontFix&can=1
|
| 87 |
+
[36,000]: https://bugs.chromium.org/p/oss-fuzz/issues/list?q=Type%3DBug%20label%3Aclusterfuzz%20-status%3ADuplicate%2CWontFix&can=1
|
| 88 |
+
[1,000]: https://github.com/google/oss-fuzz/tree/master/projects
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/new_project_guide.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
This page has moved [here](https://google.github.io/oss-fuzz/getting-started/new-project-guide/)
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/docs/reproducing.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
This page has moved [here](https://google.github.io/oss-fuzz/advanced-topics/reproducing)
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/MAINTAINERS.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name,Email,Github Username
|
| 2 |
+
Adam Korcz,adam@adalogics.com,AdamKorcz
|
| 3 |
+
David Korczynski,david@adalogics.com,DavidKorczynski
|
| 4 |
+
Dongge Liu,donggeliu@google.com,Alan32Liu
|
| 5 |
+
Holly Gong,gongh@google.com,hogo6002
|
| 6 |
+
Jonathan Metzman,metzman@google.com,jonathanmetzman
|
| 7 |
+
Oliver Chang,ochang@google.com,oliverchang
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/__pycache__/constants.cpython-312.pyc
ADDED
|
Binary file (802 Bytes). View file
|
|
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/__pycache__/templates.cpython-312.pyc
ADDED
|
Binary file (3.04 kB). View file
|
|
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Building all infra images:
|
| 2 |
+
|
| 3 |
+
```bash
|
| 4 |
+
# run from project root
|
| 5 |
+
infra/base-images/all.sh
|
| 6 |
+
```
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/aixcc_build_all.sh
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -eux
|
| 2 |
+
|
| 3 |
+
if [ "$1" = "--cache-from" ]; then
|
| 4 |
+
PULL_CACHE=1
|
| 5 |
+
shift
|
| 6 |
+
CACHE_TAG="${1//\//-}" # s/\//-/g -> for branch names that contain slashes
|
| 7 |
+
shift
|
| 8 |
+
elif [ "$1" = "--cache-to" ]; then
|
| 9 |
+
PUSH_CACHE=1
|
| 10 |
+
shift
|
| 11 |
+
CACHE_TAG="${1//\//-}" # s/\//-/g -> for branch names that contain slashes
|
| 12 |
+
shift
|
| 13 |
+
fi
|
| 14 |
+
|
| 15 |
+
ARG_TAG="$1"
|
| 16 |
+
shift
|
| 17 |
+
|
| 18 |
+
BASE_IMAGES=(
|
| 19 |
+
"ghcr.io/aixcc-finals/base-image infra/base-images/base-image"
|
| 20 |
+
"ghcr.io/aixcc-finals/base-clang infra/base-images/base-clang"
|
| 21 |
+
"ghcr.io/aixcc-finals/base-builder infra/base-images/base-builder"
|
| 22 |
+
"ghcr.io/aixcc-finals/base-builder-go infra/base-images/base-builder-go"
|
| 23 |
+
"ghcr.io/aixcc-finals/base-builder-jvm infra/base-images/base-builder-jvm"
|
| 24 |
+
"ghcr.io/aixcc-finals/base-builder-python infra/base-images/base-builder-python"
|
| 25 |
+
"ghcr.io/aixcc-finals/base-builder-rust infra/base-images/base-builder-rust"
|
| 26 |
+
"ghcr.io/aixcc-finals/base-builder-ruby infra/base-images/base-builder-ruby"
|
| 27 |
+
"ghcr.io/aixcc-finals/base-builder-swift infra/base-images/base-builder-swift"
|
| 28 |
+
"ghcr.io/aixcc-finals/base-runner infra/base-images/base-runner"
|
| 29 |
+
"ghcr.io/aixcc-finals/base-runner-debug infra/base-images/base-runner-debug"
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
for tuple in "${BASE_IMAGES[@]}"; do
|
| 33 |
+
read -r image path <<< "$tuple"
|
| 34 |
+
|
| 35 |
+
if [ "${PULL_CACHE+x}" ]; then
|
| 36 |
+
|
| 37 |
+
docker buildx build \
|
| 38 |
+
--build-arg IMG_TAG="${ARG_TAG}" \
|
| 39 |
+
--cache-from=type=registry,ref="${image}:${CACHE_TAG}" \
|
| 40 |
+
--tag "${image}:${ARG_TAG}" --push "$@" "${path}"
|
| 41 |
+
|
| 42 |
+
elif [ "${PUSH_CACHE+x}" ]; then
|
| 43 |
+
|
| 44 |
+
docker buildx build \
|
| 45 |
+
--build-arg IMG_TAG="${ARG_TAG}" \
|
| 46 |
+
--cache-from=type=registry,ref="${image}:${CACHE_TAG}" \
|
| 47 |
+
--cache-to=type=registry,ref="${image}:${CACHE_TAG}",mode=max \
|
| 48 |
+
--tag "${image}:${ARG_TAG}" --push "$@" "${path}"
|
| 49 |
+
|
| 50 |
+
else
|
| 51 |
+
|
| 52 |
+
docker buildx build \
|
| 53 |
+
--build-arg IMG_TAG="${ARG_TAG}" \
|
| 54 |
+
--tag "${image}:${ARG_TAG}" --push "$@" "${path}"
|
| 55 |
+
|
| 56 |
+
fi
|
| 57 |
+
|
| 58 |
+
done
|
| 59 |
+
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/all.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -eux
|
| 2 |
+
# Copyright 2016 Google Inc.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
docker build --pull -t ghcr.io/aixcc-finals/base-image "$@" infra/base-images/base-image
|
| 19 |
+
docker build -t ghcr.io/aixcc-finals/base-clang "$@" infra/base-images/base-clang
|
| 20 |
+
docker build -t ghcr.io/aixcc-finals/base-builder "$@" infra/base-images/base-builder
|
| 21 |
+
docker build -t ghcr.io/aixcc-finals/base-builder-go "$@" infra/base-images/base-builder-go
|
| 22 |
+
docker build -t ghcr.io/aixcc-finals/base-builder-jvm "$@" infra/base-images/base-builder-jvm
|
| 23 |
+
docker build -t ghcr.io/aixcc-finals/base-builder-python "$@" infra/base-images/base-builder-python
|
| 24 |
+
docker build -t ghcr.io/aixcc-finals/base-builder-rust "$@" infra/base-images/base-builder-rust
|
| 25 |
+
docker build -t ghcr.io/aixcc-finals/base-builder-ruby "$@" infra/base-images/base-builder-ruby
|
| 26 |
+
docker build -t ghcr.io/aixcc-finals/base-builder-swift "$@" infra/base-images/base-builder-swift
|
| 27 |
+
docker build -t ghcr.io/aixcc-finals/base-runner "$@" infra/base-images/base-runner
|
| 28 |
+
docker build -t ghcr.io/aixcc-finals/base-runner-debug "$@" infra/base-images/base-runner-debug
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2023 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
################################################################################
|
| 16 |
+
|
| 17 |
+
ARG IMG_TAG=latest
|
| 18 |
+
FROM ghcr.io/aixcc-finals/base-builder:${IMG_TAG}
|
| 19 |
+
|
| 20 |
+
# Copy/Run this now to make the cache more resilient.
|
| 21 |
+
COPY fuzzbench_install_dependencies /usr/local/bin
|
| 22 |
+
RUN fuzzbench_install_dependencies
|
| 23 |
+
|
| 24 |
+
ENV OSS_FUZZ_ON_DEMAND=1
|
| 25 |
+
|
| 26 |
+
COPY fuzzbench_build fuzzbench_run_fuzzer fuzzbench_measure /usr/local/bin/
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_build
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash -eux
|
| 2 |
+
# Copyright 2023 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
# TODO(metzman): Do this in a docket image so we don't need to waste time
|
| 19 |
+
# reinstalling.
|
| 20 |
+
PYTHONPATH=$FUZZBENCH_PATH python3 -B -u -c "from fuzzers.$FUZZING_ENGINE import fuzzer; fuzzer.build()"
|
| 21 |
+
|
| 22 |
+
if [ "$FUZZING_ENGINE" = "coverage" ]; then
|
| 23 |
+
cd $OUT
|
| 24 |
+
mkdir -p filestore/oss-fuzz-on-demand/coverage-binaries
|
| 25 |
+
# We expect an error regarding leading slashes. Just assume this step succeeds.
|
| 26 |
+
# TODO(metzman): Fix this when I get a chance.
|
| 27 |
+
tar -czvf filestore/oss-fuzz-on-demand/coverage-binaries/coverage-build-$PROJECT.tar.gz * /src /work || exit 0
|
| 28 |
+
fi
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_install_dependencies
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash -eux
|
| 2 |
+
# Copyright 2023 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
apt-get update && apt-get install -y gcc gfortran python-dev libopenblas-dev liblapack-dev cython libpq-dev
|
| 19 |
+
wget -O /tmp/requirements.txt https://raw.githubusercontent.com/google/fuzzbench/master/requirements.txt
|
| 20 |
+
pip3 install pip --upgrade
|
| 21 |
+
CFLAGS= CXXFLAGS= pip3 install -r /tmp/requirements.txt
|
| 22 |
+
rm /tmp/requirements.txt
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_measure
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash -eux
|
| 2 |
+
# Copyright 2023 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
# TODO(metzman): Make these configurable.
|
| 19 |
+
export DB_PATH=$OUT/experiment.db
|
| 20 |
+
export SNAPSHOT_PERIOD=30
|
| 21 |
+
export EXPERIMENT_FILESTORE=$OUT/filestore
|
| 22 |
+
export MAX_TOTAL_TIME=120
|
| 23 |
+
export EXPERIMENT=oss-fuzz-on-demand
|
| 24 |
+
|
| 25 |
+
rm -f $DB_PATH
|
| 26 |
+
|
| 27 |
+
# FUZZER=mopt BENCHMARK=skcms
|
| 28 |
+
|
| 29 |
+
export SQL_DATABASE_URL=sqlite:///$DB_PATH
|
| 30 |
+
|
| 31 |
+
cd $FUZZBENCH_PATH
|
| 32 |
+
PYTHONPATH=. python3 -B experiment/measurer/standalone.py $MAX_TOTAL_TIME
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-fuzzbench/fuzzbench_run_fuzzer
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash -eux
|
| 2 |
+
# Copyright 2023 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
export RUNNER_NICENESS="-5"
|
| 19 |
+
export EXPERIMENT_FILESTORE=$OUT/filestore
|
| 20 |
+
export EXPERIMENT=oss-fuzz-on-demand
|
| 21 |
+
export OSS_FUZZ_ON_DEMAND=1
|
| 22 |
+
export OUTPUT_CORPUS_DIR=/output-corpus
|
| 23 |
+
export SEED_CORPUS_DIR=/input-corpus
|
| 24 |
+
mkdir $SEED_CORPUS_DIR
|
| 25 |
+
rm -rf $OUTPUT_CORPUS_DIR
|
| 26 |
+
mkdir $OUTPUT_CORPUS_DIR
|
| 27 |
+
export FUZZER=$FUZZING_ENGINE
|
| 28 |
+
# TODO(metzman): Make this configurable.
|
| 29 |
+
export MAX_TOTAL_TIME=120
|
| 30 |
+
export SNAPSHOT_PERIOD=30
|
| 31 |
+
export TRIAL_ID=1
|
| 32 |
+
export FORCE_LOCAL=1
|
| 33 |
+
|
| 34 |
+
# BENCHMARK, FUZZ_TARGET
|
| 35 |
+
cd $OUT
|
| 36 |
+
|
| 37 |
+
# Prevent permissions issues with pyc files and docker.
|
| 38 |
+
cp -r $FUZZBENCH_PATH /tmp/fuzzbench
|
| 39 |
+
|
| 40 |
+
PYTHONPATH=/tmp/fuzzbench nice -n $RUNNER_NICENESS python3 -B -u /tmp/fuzzbench/experiment/runner.py
|
| 41 |
+
cat $EXPERIMENT_FILESTORE/$EXPERIMENT/experiment-folders/$BENCHMARK-$FUZZER/trial-$TRIAL_ID/results/fuzzer-log.txt
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-go/Dockerfile
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2021 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
################################################################################
|
| 16 |
+
|
| 17 |
+
ARG IMG_TAG=latest
|
| 18 |
+
FROM ghcr.io/aixcc-finals/base-builder:${IMG_TAG}
|
| 19 |
+
|
| 20 |
+
# Set up Golang environment variables (copied from /root/.bash_profile).
|
| 21 |
+
ENV GOPATH /root/go
|
| 22 |
+
|
| 23 |
+
# /root/.go/bin is for the standard Go binaries (i.e. go, gofmt, etc).
|
| 24 |
+
# $GOPATH/bin is for the binaries from the dependencies installed via "go get".
|
| 25 |
+
ENV PATH $PATH:/root/.go/bin:$GOPATH/bin
|
| 26 |
+
|
| 27 |
+
COPY gosigfuzz.c $GOPATH/gosigfuzz/
|
| 28 |
+
|
| 29 |
+
RUN install_go.sh
|
| 30 |
+
|
| 31 |
+
# TODO(jonathanmetzman): Install this file using install_go.sh.
|
| 32 |
+
COPY ossfuzz_coverage_runner.go \
|
| 33 |
+
$GOPATH/
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-go/gosigfuzz.c
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2023 Google LLC
|
| 3 |
+
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
*/
|
| 16 |
+
|
| 17 |
+
#include<stdlib.h>
|
| 18 |
+
#include<signal.h>
|
| 19 |
+
|
| 20 |
+
static void fixSignalHandler(int signum) {
|
| 21 |
+
struct sigaction new_action;
|
| 22 |
+
struct sigaction old_action;
|
| 23 |
+
sigemptyset (&new_action.sa_mask);
|
| 24 |
+
sigaction (signum, NULL, &old_action);
|
| 25 |
+
new_action.sa_flags = old_action.sa_flags | SA_ONSTACK;
|
| 26 |
+
new_action.sa_sigaction = old_action.sa_sigaction;
|
| 27 |
+
new_action.sa_handler = old_action.sa_handler;
|
| 28 |
+
sigaction (signum, &new_action, NULL);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
static void FixStackSignalHandler() {
|
| 32 |
+
fixSignalHandler(SIGSEGV);
|
| 33 |
+
fixSignalHandler(SIGABRT);
|
| 34 |
+
fixSignalHandler(SIGALRM);
|
| 35 |
+
fixSignalHandler(SIGINT);
|
| 36 |
+
fixSignalHandler(SIGTERM);
|
| 37 |
+
fixSignalHandler(SIGBUS);
|
| 38 |
+
fixSignalHandler(SIGFPE);
|
| 39 |
+
fixSignalHandler(SIGXFSZ);
|
| 40 |
+
fixSignalHandler(SIGUSR1);
|
| 41 |
+
fixSignalHandler(SIGUSR2);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
int LLVMFuzzerInitialize(int *argc, char ***argv) {
|
| 45 |
+
FixStackSignalHandler();
|
| 46 |
+
return 0;
|
| 47 |
+
}
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-go/ossfuzz_coverage_runner.go
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2020 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
package mypackagebeingfuzzed
|
| 16 |
+
|
| 17 |
+
import (
|
| 18 |
+
"io/fs"
|
| 19 |
+
"io/ioutil"
|
| 20 |
+
"os"
|
| 21 |
+
"path/filepath"
|
| 22 |
+
"runtime/pprof"
|
| 23 |
+
"testing"
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
func TestFuzzCorpus(t *testing.T) {
|
| 27 |
+
dir := os.Getenv("FUZZ_CORPUS_DIR")
|
| 28 |
+
if dir == "" {
|
| 29 |
+
t.Logf("No fuzzing corpus directory set")
|
| 30 |
+
return
|
| 31 |
+
}
|
| 32 |
+
filename := ""
|
| 33 |
+
defer func() {
|
| 34 |
+
if r := recover(); r != nil {
|
| 35 |
+
t.Error("Fuzz panicked in "+filename, r)
|
| 36 |
+
}
|
| 37 |
+
}()
|
| 38 |
+
profname := os.Getenv("FUZZ_PROFILE_NAME")
|
| 39 |
+
if profname != "" {
|
| 40 |
+
f, err := os.Create(profname + ".cpu.prof")
|
| 41 |
+
if err != nil {
|
| 42 |
+
t.Logf("error creating profile file %s\n", err)
|
| 43 |
+
} else {
|
| 44 |
+
_ = pprof.StartCPUProfile(f)
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
_, err := ioutil.ReadDir(dir)
|
| 48 |
+
if err != nil {
|
| 49 |
+
t.Logf("Not fuzzing corpus directory %s", err)
|
| 50 |
+
return
|
| 51 |
+
}
|
| 52 |
+
// recurse for regressions subdirectory
|
| 53 |
+
err = filepath.Walk(dir, func(fname string, info fs.FileInfo, err error) error {
|
| 54 |
+
if info.IsDir() {
|
| 55 |
+
return nil
|
| 56 |
+
}
|
| 57 |
+
data, err := ioutil.ReadFile(fname)
|
| 58 |
+
if err != nil {
|
| 59 |
+
t.Error("Failed to read corpus file", err)
|
| 60 |
+
return err
|
| 61 |
+
}
|
| 62 |
+
filename = fname
|
| 63 |
+
FuzzFunction(data)
|
| 64 |
+
return nil
|
| 65 |
+
})
|
| 66 |
+
if err != nil {
|
| 67 |
+
t.Error("Failed to run corpus", err)
|
| 68 |
+
}
|
| 69 |
+
if profname != "" {
|
| 70 |
+
pprof.StopCPUProfile()
|
| 71 |
+
f, err := os.Create(profname + ".heap.prof")
|
| 72 |
+
if err != nil {
|
| 73 |
+
t.Logf("error creating heap profile file %s\n", err)
|
| 74 |
+
}
|
| 75 |
+
if err = pprof.WriteHeapProfile(f); err != nil {
|
| 76 |
+
t.Logf("error writing heap profile file %s\n", err)
|
| 77 |
+
}
|
| 78 |
+
f.Close()
|
| 79 |
+
}
|
| 80 |
+
}
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-python/Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2021 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
################################################################################
|
| 16 |
+
|
| 17 |
+
ARG IMG_TAG=latest
|
| 18 |
+
FROM ghcr.io/aixcc-finals/base-builder:${IMG_TAG}
|
| 19 |
+
|
| 20 |
+
RUN install_python.sh
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-swift/Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2021 Google LLC
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
################################################################################
|
| 16 |
+
|
| 17 |
+
ARG IMG_TAG=latest
|
| 18 |
+
FROM ghcr.io/aixcc-finals/base-builder:${IMG_TAG}
|
| 19 |
+
|
| 20 |
+
RUN install_swift.sh
|
| 21 |
+
|
| 22 |
+
COPY precompile_swift /usr/local/bin/
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder-swift/precompile_swift
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -eu
|
| 2 |
+
# Copyright 2021 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
cp /usr/local/bin/llvm-symbolizer-swift $OUT/llvm-symbolizer
|
| 19 |
+
|
| 20 |
+
export SWIFTFLAGS="-Xswiftc -parse-as-library -Xswiftc -static-stdlib --static-swift-stdlib"
|
| 21 |
+
if [ "$SANITIZER" = "coverage" ]
|
| 22 |
+
then
|
| 23 |
+
export SWIFTFLAGS="$SWIFTFLAGS -Xswiftc -profile-generate -Xswiftc -profile-coverage-mapping -Xswiftc -sanitize=fuzzer"
|
| 24 |
+
else
|
| 25 |
+
export SWIFTFLAGS="$SWIFTFLAGS -Xswiftc -sanitize=fuzzer,$SANITIZER --sanitize=$SANITIZER"
|
| 26 |
+
for f in $CFLAGS; do
|
| 27 |
+
export SWIFTFLAGS="$SWIFTFLAGS -Xcc=$f"
|
| 28 |
+
done
|
| 29 |
+
|
| 30 |
+
for f in $CXXFLAGS; do
|
| 31 |
+
export SWIFTFLAGS="$SWIFTFLAGS -Xcxx=$f"
|
| 32 |
+
done
|
| 33 |
+
fi
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder/compile_fuzztests.sh
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -eu
|
| 2 |
+
# Copyright 2022 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
set -x
|
| 19 |
+
|
| 20 |
+
# In order to identify fuzztest test case "bazel query" is used to search
|
| 21 |
+
# the project. A search of the entire project is done with a default "...",
|
| 22 |
+
# however, some projects may fail to, or have very long processing time, if
|
| 23 |
+
# searching the entire project. Additionally, it may include fuzzers in
|
| 24 |
+
# dependencies, which should not be build as part of a given project.
|
| 25 |
+
# Tensorflow is an example project that will fail when the entire project is
|
| 26 |
+
# queried. FUZZTEST_TARGET_FOLDER makes it posible to specify the folder
|
| 27 |
+
# where fuzztest fuzzers should be search for. FUZZTEST_TARGET_FOLDER is passed
|
| 28 |
+
# to "bazel query" below.
|
| 29 |
+
if [[ ${FUZZTEST_TARGET_FOLDER:-"unset"} == "unset" ]];
|
| 30 |
+
then
|
| 31 |
+
export TARGET_FOLDER="..."
|
| 32 |
+
else
|
| 33 |
+
TARGET_FOLDER=${FUZZTEST_TARGET_FOLDER}
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
+
BUILD_ARGS="--config=oss-fuzz --subcommands"
|
| 37 |
+
if [[ ${FUZZTEST_EXTRA_ARGS:-"unset"} != "unset" ]];
|
| 38 |
+
then
|
| 39 |
+
BUILD_ARGS="$BUILD_ARGS ${FUZZTEST_EXTRA_ARGS}"
|
| 40 |
+
fi
|
| 41 |
+
|
| 42 |
+
# Trigger setup_configs rule of fuzztest as it generates the necessary
|
| 43 |
+
# configuration file based on OSS-Fuzz environment variables.
|
| 44 |
+
bazel run @com_google_fuzztest//bazel:setup_configs >> /etc/bazel.bazelrc
|
| 45 |
+
|
| 46 |
+
# Bazel target names of the fuzz binaries.
|
| 47 |
+
FUZZ_TEST_BINARIES=$(bazel query "kind(\"cc_test\", rdeps(${TARGET_FOLDER}, @com_google_fuzztest//fuzztest:fuzztest_gtest_main))")
|
| 48 |
+
|
| 49 |
+
# Bazel output paths of the fuzz binaries.
|
| 50 |
+
FUZZ_TEST_BINARIES_OUT_PATHS=$(bazel cquery "kind(\"cc_test\", rdeps(${TARGET_FOLDER}, @com_google_fuzztest//fuzztest:fuzztest_gtest_main))" --output=files)
|
| 51 |
+
|
| 52 |
+
# Build the project and fuzz binaries
|
| 53 |
+
# Expose `FUZZTEST_EXTRA_TARGETS` environment variable, in the event a project
|
| 54 |
+
# includes non-FuzzTest fuzzers then this can be used to compile these in the
|
| 55 |
+
# same `bazel build` command as when building the FuzzTest fuzzers.
|
| 56 |
+
# This is to avoid having to call `bazel build` twice.
|
| 57 |
+
bazel build $BUILD_ARGS -- ${FUZZ_TEST_BINARIES[*]} ${FUZZTEST_EXTRA_TARGETS:-}
|
| 58 |
+
|
| 59 |
+
# Iterate the fuzz binaries and list each fuzz entrypoint in the binary. For
|
| 60 |
+
# each entrypoint create a wrapper script that calls into the binaries the
|
| 61 |
+
# given entrypoint as argument.
|
| 62 |
+
# The scripts will be named:
|
| 63 |
+
# {binary_name}@{fuzztest_entrypoint}
|
| 64 |
+
for fuzz_main_file in $FUZZ_TEST_BINARIES_OUT_PATHS; do
|
| 65 |
+
FUZZ_TESTS=$($fuzz_main_file --list_fuzz_tests)
|
| 66 |
+
cp ${fuzz_main_file} $OUT/
|
| 67 |
+
fuzz_basename=$(basename $fuzz_main_file)
|
| 68 |
+
chmod -x $OUT/$fuzz_basename
|
| 69 |
+
for fuzz_entrypoint in $FUZZ_TESTS; do
|
| 70 |
+
TARGET_FUZZER="${fuzz_basename}@$fuzz_entrypoint"
|
| 71 |
+
|
| 72 |
+
# Write executer script
|
| 73 |
+
echo "#!/bin/sh
|
| 74 |
+
# LLVMFuzzerTestOneInput for fuzzer detection.
|
| 75 |
+
this_dir=\$(dirname \"\$0\")
|
| 76 |
+
chmod +x \$this_dir/$fuzz_basename
|
| 77 |
+
\$this_dir/$fuzz_basename --fuzz=$fuzz_entrypoint -- \$@" > $OUT/$TARGET_FUZZER
|
| 78 |
+
chmod +x $OUT/$TARGET_FUZZER
|
| 79 |
+
done
|
| 80 |
+
done
|
| 81 |
+
|
| 82 |
+
# Synchronise coverage directory to bazel output artifacts. This is a
|
| 83 |
+
# best-effort basis in that it will include source code in common
|
| 84 |
+
# bazel output folders.
|
| 85 |
+
# For projects that store results in non-standard folders or want to
|
| 86 |
+
# manage what code to include in the coverage report more specifically,
|
| 87 |
+
# the FUZZTEST_DO_SYNC environment variable is made available. Projects
|
| 88 |
+
# can then implement a custom way of synchronising source code with the
|
| 89 |
+
# coverage build. Set FUZZTEST_DO_SYNC to something other than "yes" and
|
| 90 |
+
# no effort will be made to automatically synchronise the source code with
|
| 91 |
+
# the code coverage visualisation utility.
|
| 92 |
+
if [[ "$SANITIZER" = "coverage" && ${FUZZTEST_DO_SYNC:-"yes"} == "yes" ]]
|
| 93 |
+
then
|
| 94 |
+
# Synchronize bazel source files to coverage collection.
|
| 95 |
+
declare -r REMAP_PATH="${OUT}/proc/self/cwd"
|
| 96 |
+
mkdir -p "${REMAP_PATH}"
|
| 97 |
+
|
| 98 |
+
# Synchronize the folder bazel-BAZEL_OUT_PROJECT.
|
| 99 |
+
declare -r RSYNC_FILTER_ARGS=("--include" "*.h" "--include" "*.cc" "--include" \
|
| 100 |
+
"*.hpp" "--include" "*.cpp" "--include" "*.c" "--include" "*/" "--include" "*.inc" \
|
| 101 |
+
"--exclude" "*")
|
| 102 |
+
|
| 103 |
+
project_folders="$(find . -name 'bazel-*' -type l -printf '%P\n' | \
|
| 104 |
+
grep -v -x -F \
|
| 105 |
+
-e 'bazel-bin' \
|
| 106 |
+
-e 'bazel-testlogs')"
|
| 107 |
+
for link in $project_folders; do
|
| 108 |
+
if [[ -d "${PWD}"/$link/external ]]
|
| 109 |
+
then
|
| 110 |
+
rsync -avLk "${RSYNC_FILTER_ARGS[@]}" "${PWD}"/$link/external "${REMAP_PATH}"
|
| 111 |
+
fi
|
| 112 |
+
# k8-opt is a common path for storing bazel output artifacts, e.g. bazel-out/k8-opt.
|
| 113 |
+
# It's the output folder for default amd-64 builds, but projects may specify custom
|
| 114 |
+
# platform output directories, see: https://github.com/bazelbuild/bazel/issues/13818
|
| 115 |
+
# We support the default at the moment, and if a project needs custom synchronizing of
|
| 116 |
+
# output artifacts and code coverage we currently recommend using FUZZTEST_DO_SYNC.
|
| 117 |
+
if [[ -d "${PWD}"/$link/k8-opt ]]
|
| 118 |
+
then
|
| 119 |
+
rsync -avLk "${RSYNC_FILTER_ARGS[@]}" "${PWD}"/$link/k8-opt "${REMAP_PATH}"/$link
|
| 120 |
+
fi
|
| 121 |
+
done
|
| 122 |
+
|
| 123 |
+
# Delete symlinks and sync the current folder.
|
| 124 |
+
find . -type l -ls -delete
|
| 125 |
+
rsync -av ${PWD}/ "${REMAP_PATH}"
|
| 126 |
+
fi
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder/install_go.sh
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -eux
|
| 2 |
+
# Copyright 2021 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
cd /tmp
|
| 19 |
+
|
| 20 |
+
wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz
|
| 21 |
+
mkdir temp-go
|
| 22 |
+
tar -C temp-go/ -xzf go1.23.4.linux-amd64.tar.gz
|
| 23 |
+
|
| 24 |
+
mkdir /root/.go/
|
| 25 |
+
mv temp-go/go/* /root/.go/
|
| 26 |
+
rm -rf temp-go
|
| 27 |
+
|
| 28 |
+
echo 'Set "GOPATH=/root/go"'
|
| 29 |
+
echo 'Set "PATH=$PATH:/root/.go/bin:$GOPATH/bin"'
|
| 30 |
+
|
| 31 |
+
go install github.com/mdempsky/go114-fuzz-build@latest
|
| 32 |
+
ln -s $GOPATH/bin/go114-fuzz-build $GOPATH/bin/go-fuzz
|
| 33 |
+
|
| 34 |
+
# Build signal handler
|
| 35 |
+
if [ -f "$GOPATH/gosigfuzz/gosigfuzz.c" ]; then
|
| 36 |
+
clang -c $GOPATH/gosigfuzz/gosigfuzz.c -o $GOPATH/gosigfuzz/gosigfuzz.o
|
| 37 |
+
fi
|
| 38 |
+
|
| 39 |
+
cd /tmp
|
| 40 |
+
git clone https://github.com/AdamKorcz/go-118-fuzz-build
|
| 41 |
+
cd go-118-fuzz-build
|
| 42 |
+
go build
|
| 43 |
+
mv go-118-fuzz-build $GOPATH/bin/
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-builder/write_labels.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# Copyright 2021 Google LLC
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
"""Script for writing from project.yaml to .labels file."""
|
| 16 |
+
|
| 17 |
+
import os
|
| 18 |
+
import json
|
| 19 |
+
import sys
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def main():
|
| 23 |
+
"""Writes labels."""
|
| 24 |
+
if len(sys.argv) != 3:
|
| 25 |
+
print('Usage: write_labels.py labels_json out_dir', file=sys.stderr)
|
| 26 |
+
sys.exit(1)
|
| 27 |
+
|
| 28 |
+
labels_by_target = json.loads(sys.argv[1])
|
| 29 |
+
out = sys.argv[2]
|
| 30 |
+
|
| 31 |
+
for target_name, labels in labels_by_target.items():
|
| 32 |
+
# Skip over wildcard value applying to all fuzz targets
|
| 33 |
+
if target_name == '*':
|
| 34 |
+
continue
|
| 35 |
+
with open(os.path.join(out, target_name + '.labels'), 'w') as file_handle:
|
| 36 |
+
file_handle.write('\n'.join(labels))
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
if __name__ == '__main__':
|
| 40 |
+
main()
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-image/Dockerfile
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2016 Google Inc.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
################################################################################
|
| 16 |
+
|
| 17 |
+
# Base image for all other images.
|
| 18 |
+
|
| 19 |
+
ARG parent_image=ubuntu:20.04@sha256:4a45212e9518f35983a976eead0de5eecc555a2f047134e9dd2cfc589076a00d
|
| 20 |
+
|
| 21 |
+
FROM $parent_image
|
| 22 |
+
|
| 23 |
+
ENV DEBIAN_FRONTEND noninteractive
|
| 24 |
+
# Install tzadata to match ClusterFuzz
|
| 25 |
+
# (https://github.com/google/oss-fuzz/issues/9280).
|
| 26 |
+
|
| 27 |
+
# Use Azure mirrors for consistent apt repository access.
|
| 28 |
+
RUN cp /etc/apt/sources.list /etc/apt/sources.list.backup && \
|
| 29 |
+
sed -i 's|http://archive.ubuntu.com/ubuntu/|http://azure.archive.ubuntu.com/ubuntu/|g' /etc/apt/sources.list && \
|
| 30 |
+
sed -i 's|http://security.ubuntu.com/ubuntu/|http://azure.archive.ubuntu.com/ubuntu/|g' /etc/apt/sources.list
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
RUN apt-get update && \
|
| 34 |
+
apt-get upgrade -y && \
|
| 35 |
+
apt-get install -y libc6-dev binutils libgcc-9-dev tzdata locales locales-all && \
|
| 36 |
+
apt-get autoremove -y
|
| 37 |
+
|
| 38 |
+
ENV OUT=/out
|
| 39 |
+
ENV SRC=/src
|
| 40 |
+
ENV WORK=/work
|
| 41 |
+
ENV PATH="$PATH:/out"
|
| 42 |
+
ENV HWASAN_OPTIONS=random_tags=0
|
| 43 |
+
#set locale to utf8
|
| 44 |
+
ENV LC_ALL=C.UTF-8
|
| 45 |
+
|
| 46 |
+
RUN mkdir -p $OUT $SRC $WORK && chmod a+rwx $OUT $SRC $WORK
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-runner-debug/Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2016 Google Inc.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
################################################################################
|
| 16 |
+
|
| 17 |
+
ARG IMG_TAG=latest
|
| 18 |
+
FROM ghcr.io/aixcc-finals/base-runner:${IMG_TAG}
|
| 19 |
+
RUN apt-get update && apt-get install -y valgrind zip
|
| 20 |
+
|
| 21 |
+
# Installing GDB 12, re https://github.com/google/oss-fuzz/issues/7513.
|
| 22 |
+
RUN apt-get install -y build-essential libgmp-dev && \
|
| 23 |
+
wget https://ftp.gnu.org/gnu/gdb/gdb-12.1.tar.xz && \
|
| 24 |
+
tar -xf gdb-12.1.tar.xz && cd gdb-12.1 && ./configure && \
|
| 25 |
+
make -j $(expr $(nproc) / 2) && make install && cd .. && \
|
| 26 |
+
rm -rf gdb-12.1* && apt-get remove --purge -y build-essential libgmp-dev
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-runner/bad_build_check
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -u
|
| 2 |
+
# Copyright 2017 Google Inc.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
|
| 18 |
+
# A minimal number of runs to test fuzz target with a non-empty input.
|
| 19 |
+
MIN_NUMBER_OF_RUNS=4
|
| 20 |
+
|
| 21 |
+
# The "example" target has 73 with ASan, 65 with UBSan, and 6648 with MSan.
|
| 22 |
+
# Real world targets have greater values (arduinojson: 407, zlib: 664).
|
| 23 |
+
# Mercurial's bdiff_fuzzer has 116 PCs when built with ASan.
|
| 24 |
+
THRESHOLD_FOR_NUMBER_OF_EDGES=100
|
| 25 |
+
|
| 26 |
+
# A fuzz target is supposed to have at least two functions, such as
|
| 27 |
+
# LLVMFuzzerTestOneInput and an API that is being called from there.
|
| 28 |
+
THRESHOLD_FOR_NUMBER_OF_FUNCTIONS=2
|
| 29 |
+
|
| 30 |
+
# Threshold values for different sanitizers used by instrumentation checks.
|
| 31 |
+
ASAN_CALLS_THRESHOLD_FOR_ASAN_BUILD=1000
|
| 32 |
+
ASAN_CALLS_THRESHOLD_FOR_NON_ASAN_BUILD=0
|
| 33 |
+
|
| 34 |
+
# The value below can definitely be higher (like 500-1000), but avoid being too
|
| 35 |
+
# agressive here while still evaluating the DFT-based fuzzing approach.
|
| 36 |
+
DFSAN_CALLS_THRESHOLD_FOR_DFSAN_BUILD=100
|
| 37 |
+
DFSAN_CALLS_THRESHOLD_FOR_NON_DFSAN_BUILD=0
|
| 38 |
+
|
| 39 |
+
MSAN_CALLS_THRESHOLD_FOR_MSAN_BUILD=1000
|
| 40 |
+
# Some engines (e.g. honggfuzz) may make a very small number of calls to msan
|
| 41 |
+
# for memory poisoning.
|
| 42 |
+
MSAN_CALLS_THRESHOLD_FOR_NON_MSAN_BUILD=3
|
| 43 |
+
|
| 44 |
+
# Usually, a non UBSan build (e.g. ASan) has 165 calls to UBSan runtime. The
|
| 45 |
+
# majority of targets built with UBSan have 200+ UBSan calls, but there are
|
| 46 |
+
# some very small targets that may have < 200 UBSan calls even in a UBSan build.
|
| 47 |
+
# Use the threshold value of 168 (slightly > 165) for UBSan build.
|
| 48 |
+
UBSAN_CALLS_THRESHOLD_FOR_UBSAN_BUILD=168
|
| 49 |
+
|
| 50 |
+
# It would be risky to use the threshold value close to 165 for non UBSan build,
|
| 51 |
+
# as UBSan runtime may change any time and thus we could have different number
|
| 52 |
+
# of calls to UBSan runtime even in ASan build. With that, we use the threshold
|
| 53 |
+
# value of 200 that would detect unnecessary UBSan instrumentation in the vast
|
| 54 |
+
# majority of targets, except of a handful very small ones, which would not be
|
| 55 |
+
# a big concern either way as the overhead for them would not be significant.
|
| 56 |
+
UBSAN_CALLS_THRESHOLD_FOR_NON_UBSAN_BUILD=200
|
| 57 |
+
|
| 58 |
+
# ASan builds on i386 generally have about 250 UBSan runtime calls.
|
| 59 |
+
if [[ $ARCHITECTURE == 'i386' ]]
|
| 60 |
+
then
|
| 61 |
+
UBSAN_CALLS_THRESHOLD_FOR_NON_UBSAN_BUILD=280
|
| 62 |
+
fi
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
# Verify that the given fuzz target is correctly built to run with a particular
|
| 66 |
+
# engine.
|
| 67 |
+
function check_engine {
|
| 68 |
+
local FUZZER=$1
|
| 69 |
+
local FUZZER_NAME=$(basename $FUZZER)
|
| 70 |
+
local FUZZER_OUTPUT="/tmp/$FUZZER_NAME.output"
|
| 71 |
+
local CHECK_FAILED=0
|
| 72 |
+
|
| 73 |
+
if [[ "$FUZZING_ENGINE" == libfuzzer ]]; then
|
| 74 |
+
# Store fuzz target's output into a temp file to be used for further checks.
|
| 75 |
+
$FUZZER -seed=1337 -runs=$MIN_NUMBER_OF_RUNS &>$FUZZER_OUTPUT
|
| 76 |
+
CHECK_FAILED=$(egrep "ERROR: no interesting inputs were found. Is the code instrumented" -c $FUZZER_OUTPUT)
|
| 77 |
+
if (( $CHECK_FAILED > 0 )); then
|
| 78 |
+
echo "BAD BUILD: $FUZZER does not seem to have coverage instrumentation."
|
| 79 |
+
cat $FUZZER_OUTPUT
|
| 80 |
+
# Bail out as the further check does not make any sense, there are 0 PCs.
|
| 81 |
+
return 1
|
| 82 |
+
fi
|
| 83 |
+
|
| 84 |
+
local NUMBER_OF_EDGES=$(grep -Po "INFO: Loaded [[:digit:]]+ module.*\(.*(counters|guards)\):[[:space:]]+\K[[:digit:]]+" $FUZZER_OUTPUT)
|
| 85 |
+
|
| 86 |
+
# If a fuzz target fails to start, grep won't find anything, so bail out early to let check_startup_crash deal with it.
|
| 87 |
+
[[ -z "$NUMBER_OF_EDGES" ]] && return
|
| 88 |
+
|
| 89 |
+
if (( $NUMBER_OF_EDGES < $THRESHOLD_FOR_NUMBER_OF_EDGES )); then
|
| 90 |
+
echo "BAD BUILD: $FUZZER seems to have only partial coverage instrumentation."
|
| 91 |
+
fi
|
| 92 |
+
elif [[ "$FUZZING_ENGINE" == afl ]]; then
|
| 93 |
+
AFL_FORKSRV_INIT_TMOUT=30000 AFL_NO_UI=1 SKIP_SEED_CORPUS=1 timeout --preserve-status -s INT 35s run_fuzzer $FUZZER_NAME &>$FUZZER_OUTPUT
|
| 94 |
+
CHECK_PASSED=$(egrep "All set and ready to roll" -c $FUZZER_OUTPUT)
|
| 95 |
+
if (( $CHECK_PASSED == 0 )); then
|
| 96 |
+
echo "BAD BUILD: fuzzing $FUZZER with afl-fuzz failed."
|
| 97 |
+
cat $FUZZER_OUTPUT
|
| 98 |
+
return 1
|
| 99 |
+
fi
|
| 100 |
+
elif [[ "$FUZZING_ENGINE" == honggfuzz ]]; then
|
| 101 |
+
SKIP_SEED_CORPUS=1 timeout --preserve-status -s INT 20s run_fuzzer $FUZZER_NAME &>$FUZZER_OUTPUT
|
| 102 |
+
CHECK_PASSED=$(egrep "^Sz:[0-9]+ Tm:[0-9]+" -c $FUZZER_OUTPUT)
|
| 103 |
+
if (( $CHECK_PASSED == 0 )); then
|
| 104 |
+
echo "BAD BUILD: fuzzing $FUZZER with honggfuzz failed."
|
| 105 |
+
cat $FUZZER_OUTPUT
|
| 106 |
+
return 1
|
| 107 |
+
fi
|
| 108 |
+
elif [[ "$FUZZING_ENGINE" == dataflow ]]; then
|
| 109 |
+
$FUZZER &> $FUZZER_OUTPUT
|
| 110 |
+
local NUMBER_OF_FUNCTIONS=$(grep -Po "INFO:\s+\K[[:digit:]]+(?=\s+instrumented function.*)" $FUZZER_OUTPUT)
|
| 111 |
+
[[ -z "$NUMBER_OF_FUNCTIONS" ]] && NUMBER_OF_FUNCTIONS=0
|
| 112 |
+
if (( $NUMBER_OF_FUNCTIONS < $THRESHOLD_FOR_NUMBER_OF_FUNCTIONS )); then
|
| 113 |
+
echo "BAD BUILD: $FUZZER does not seem to be properly built in 'dataflow' config."
|
| 114 |
+
cat $FUZZER_OUTPUT
|
| 115 |
+
return 1
|
| 116 |
+
fi
|
| 117 |
+
elif [[ "$FUZZING_ENGINE" == centipede \
|
| 118 |
+
&& ("${HELPER:-}" == True || "$SANITIZER" == none ) ]]; then
|
| 119 |
+
# Performs run test on unsanitized binaries with auxiliary sanitized
|
| 120 |
+
# binaries if they are built with helper.py.
|
| 121 |
+
# Performs run test on unsanitized binaries without auxiliary sanitized
|
| 122 |
+
# binaries if they are from trial build and production build.
|
| 123 |
+
# TODO(Dongge): Support run test with sanitized binaries for trial and
|
| 124 |
+
# production build.
|
| 125 |
+
SKIP_SEED_CORPUS=1 timeout --preserve-status -s INT 20s run_fuzzer $FUZZER_NAME &>$FUZZER_OUTPUT
|
| 126 |
+
CHECK_PASSED=$(egrep "\[S0.0] begin-fuzz: ft: 0 corp: 0/0" -c $FUZZER_OUTPUT)
|
| 127 |
+
if (( $CHECK_PASSED == 0 )); then
|
| 128 |
+
echo "BAD BUILD: fuzzing $FUZZER with centipede failed."
|
| 129 |
+
cat $FUZZER_OUTPUT
|
| 130 |
+
return 1
|
| 131 |
+
fi
|
| 132 |
+
fi
|
| 133 |
+
|
| 134 |
+
return 0
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
# Verify that the given fuzz target has been built properly and works.
|
| 138 |
+
function check_startup_crash {
|
| 139 |
+
local FUZZER=$1
|
| 140 |
+
local FUZZER_NAME=$(basename $FUZZER)
|
| 141 |
+
local FUZZER_OUTPUT="/tmp/$FUZZER_NAME.output"
|
| 142 |
+
local CHECK_PASSED=0
|
| 143 |
+
|
| 144 |
+
if [[ "$FUZZING_ENGINE" = libfuzzer ]]; then
|
| 145 |
+
# Skip seed corpus as there is another explicit check that uses seed corpora.
|
| 146 |
+
SKIP_SEED_CORPUS=1 run_fuzzer $FUZZER_NAME -seed=1337 -runs=$MIN_NUMBER_OF_RUNS &>$FUZZER_OUTPUT
|
| 147 |
+
CHECK_PASSED=$(egrep "Done $MIN_NUMBER_OF_RUNS runs" -c $FUZZER_OUTPUT)
|
| 148 |
+
elif [[ "$FUZZING_ENGINE" = afl ]]; then
|
| 149 |
+
AFL_FORKSRV_INIT_TMOUT=30000 AFL_NO_UI=1 SKIP_SEED_CORPUS=1 timeout --preserve-status -s INT 35s run_fuzzer $FUZZER_NAME &>$FUZZER_OUTPUT
|
| 150 |
+
if [ $(egrep "target binary (crashed|terminated)" -c $FUZZER_OUTPUT) -eq 0 ]; then
|
| 151 |
+
CHECK_PASSED=1
|
| 152 |
+
fi
|
| 153 |
+
elif [[ "$FUZZING_ENGINE" = dataflow ]]; then
|
| 154 |
+
# TODO(https://github.com/google/oss-fuzz/issues/1632): add check for
|
| 155 |
+
# binaries compiled with dataflow engine when the interface becomes stable.
|
| 156 |
+
CHECK_PASSED=1
|
| 157 |
+
else
|
| 158 |
+
# TODO: add checks for another fuzzing engines if possible.
|
| 159 |
+
CHECK_PASSED=1
|
| 160 |
+
fi
|
| 161 |
+
|
| 162 |
+
if [ "$CHECK_PASSED" -eq "0" ]; then
|
| 163 |
+
echo "BAD BUILD: $FUZZER seems to have either startup crash or exit:"
|
| 164 |
+
cat $FUZZER_OUTPUT
|
| 165 |
+
return 1
|
| 166 |
+
fi
|
| 167 |
+
|
| 168 |
+
return 0
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
# Mixed sanitizers check for ASan build.
|
| 172 |
+
function check_asan_build {
|
| 173 |
+
local FUZZER=$1
|
| 174 |
+
local ASAN_CALLS=$2
|
| 175 |
+
local DFSAN_CALLS=$3
|
| 176 |
+
local MSAN_CALLS=$4
|
| 177 |
+
local UBSAN_CALLS=$5
|
| 178 |
+
|
| 179 |
+
# Perform all the checks for more detailed error message.
|
| 180 |
+
if (( $ASAN_CALLS < $ASAN_CALLS_THRESHOLD_FOR_ASAN_BUILD )); then
|
| 181 |
+
echo "BAD BUILD: $FUZZER does not seem to be compiled with ASan."
|
| 182 |
+
return 1
|
| 183 |
+
fi
|
| 184 |
+
|
| 185 |
+
if (( $DFSAN_CALLS > $DFSAN_CALLS_THRESHOLD_FOR_NON_DFSAN_BUILD )); then
|
| 186 |
+
echo "BAD BUILD: ASan build of $FUZZER seems to be compiled with DFSan."
|
| 187 |
+
return 1
|
| 188 |
+
fi
|
| 189 |
+
|
| 190 |
+
if (( $MSAN_CALLS > $MSAN_CALLS_THRESHOLD_FOR_NON_MSAN_BUILD )); then
|
| 191 |
+
echo "BAD BUILD: ASan build of $FUZZER seems to be compiled with MSan."
|
| 192 |
+
return 1
|
| 193 |
+
fi
|
| 194 |
+
|
| 195 |
+
if (( $UBSAN_CALLS > $UBSAN_CALLS_THRESHOLD_FOR_NON_UBSAN_BUILD )); then
|
| 196 |
+
echo "BAD BUILD: ASan build of $FUZZER seems to be compiled with UBSan."
|
| 197 |
+
return 1
|
| 198 |
+
fi
|
| 199 |
+
|
| 200 |
+
return 0
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
# Mixed sanitizers check for DFSan build.
|
| 204 |
+
function check_dfsan_build {
|
| 205 |
+
local FUZZER=$1
|
| 206 |
+
local ASAN_CALLS=$2
|
| 207 |
+
local DFSAN_CALLS=$3
|
| 208 |
+
local MSAN_CALLS=$4
|
| 209 |
+
local UBSAN_CALLS=$5
|
| 210 |
+
|
| 211 |
+
# Perform all the checks for more detailed error message.
|
| 212 |
+
if (( $ASAN_CALLS > $ASAN_CALLS_THRESHOLD_FOR_NON_ASAN_BUILD )); then
|
| 213 |
+
echo "BAD BUILD: DFSan build of $FUZZER seems to be compiled with ASan."
|
| 214 |
+
return 1
|
| 215 |
+
fi
|
| 216 |
+
|
| 217 |
+
if (( $DFSAN_CALLS < $DFSAN_CALLS_THRESHOLD_FOR_DFSAN_BUILD )); then
|
| 218 |
+
echo "BAD BUILD: $FUZZER does not seem to be compiled with DFSan."
|
| 219 |
+
return 1
|
| 220 |
+
fi
|
| 221 |
+
|
| 222 |
+
if (( $MSAN_CALLS > $MSAN_CALLS_THRESHOLD_FOR_NON_MSAN_BUILD )); then
|
| 223 |
+
echo "BAD BUILD: ASan build of $FUZZER seems to be compiled with MSan."
|
| 224 |
+
return 1
|
| 225 |
+
fi
|
| 226 |
+
|
| 227 |
+
if (( $UBSAN_CALLS > $UBSAN_CALLS_THRESHOLD_FOR_NON_UBSAN_BUILD )); then
|
| 228 |
+
echo "BAD BUILD: ASan build of $FUZZER seems to be compiled with UBSan."
|
| 229 |
+
return 1
|
| 230 |
+
fi
|
| 231 |
+
|
| 232 |
+
return 0
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
# Mixed sanitizers check for MSan build.
|
| 237 |
+
function check_msan_build {
|
| 238 |
+
local FUZZER=$1
|
| 239 |
+
local ASAN_CALLS=$2
|
| 240 |
+
local DFSAN_CALLS=$3
|
| 241 |
+
local MSAN_CALLS=$4
|
| 242 |
+
local UBSAN_CALLS=$5
|
| 243 |
+
|
| 244 |
+
# Perform all the checks for more detailed error message.
|
| 245 |
+
if (( $ASAN_CALLS > $ASAN_CALLS_THRESHOLD_FOR_NON_ASAN_BUILD )); then
|
| 246 |
+
echo "BAD BUILD: MSan build of $FUZZER seems to be compiled with ASan."
|
| 247 |
+
return 1
|
| 248 |
+
fi
|
| 249 |
+
|
| 250 |
+
if (( $DFSAN_CALLS > $DFSAN_CALLS_THRESHOLD_FOR_NON_DFSAN_BUILD )); then
|
| 251 |
+
echo "BAD BUILD: MSan build of $FUZZER seems to be compiled with DFSan."
|
| 252 |
+
return 1
|
| 253 |
+
fi
|
| 254 |
+
|
| 255 |
+
if (( $MSAN_CALLS < $MSAN_CALLS_THRESHOLD_FOR_MSAN_BUILD )); then
|
| 256 |
+
echo "BAD BUILD: $FUZZER does not seem to be compiled with MSan."
|
| 257 |
+
return 1
|
| 258 |
+
fi
|
| 259 |
+
|
| 260 |
+
if (( $UBSAN_CALLS > $UBSAN_CALLS_THRESHOLD_FOR_NON_UBSAN_BUILD )); then
|
| 261 |
+
echo "BAD BUILD: MSan build of $FUZZER seems to be compiled with UBSan."
|
| 262 |
+
return 1
|
| 263 |
+
fi
|
| 264 |
+
|
| 265 |
+
return 0
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
# Mixed sanitizers check for UBSan build.
|
| 269 |
+
function check_ubsan_build {
|
| 270 |
+
local FUZZER=$1
|
| 271 |
+
local ASAN_CALLS=$2
|
| 272 |
+
local DFSAN_CALLS=$3
|
| 273 |
+
local MSAN_CALLS=$4
|
| 274 |
+
local UBSAN_CALLS=$5
|
| 275 |
+
|
| 276 |
+
if [[ "$FUZZING_ENGINE" != libfuzzer ]]; then
|
| 277 |
+
# Ignore UBSan checks for fuzzing engines other than libFuzzer because:
|
| 278 |
+
# A) we (probably) are not going to use those with UBSan
|
| 279 |
+
# B) such builds show indistinguishable number of calls to UBSan
|
| 280 |
+
return 0
|
| 281 |
+
fi
|
| 282 |
+
|
| 283 |
+
# Perform all the checks for more detailed error message.
|
| 284 |
+
if (( $ASAN_CALLS > $ASAN_CALLS_THRESHOLD_FOR_NON_ASAN_BUILD )); then
|
| 285 |
+
echo "BAD BUILD: UBSan build of $FUZZER seems to be compiled with ASan."
|
| 286 |
+
return 1
|
| 287 |
+
fi
|
| 288 |
+
|
| 289 |
+
if (( $DFSAN_CALLS > $DFSAN_CALLS_THRESHOLD_FOR_NON_DFSAN_BUILD )); then
|
| 290 |
+
echo "BAD BUILD: UBSan build of $FUZZER seems to be compiled with DFSan."
|
| 291 |
+
return 1
|
| 292 |
+
fi
|
| 293 |
+
|
| 294 |
+
if (( $MSAN_CALLS > $MSAN_CALLS_THRESHOLD_FOR_NON_MSAN_BUILD )); then
|
| 295 |
+
echo "BAD BUILD: UBSan build of $FUZZER seems to be compiled with MSan."
|
| 296 |
+
return 1
|
| 297 |
+
fi
|
| 298 |
+
|
| 299 |
+
if (( $UBSAN_CALLS < $UBSAN_CALLS_THRESHOLD_FOR_UBSAN_BUILD )); then
|
| 300 |
+
echo "BAD BUILD: $FUZZER does not seem to be compiled with UBSan."
|
| 301 |
+
return 1
|
| 302 |
+
fi
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
# Verify that the given fuzz target is compiled with correct sanitizer.
|
| 306 |
+
function check_mixed_sanitizers {
|
| 307 |
+
local FUZZER=$1
|
| 308 |
+
local result=0
|
| 309 |
+
local CALL_INSN=
|
| 310 |
+
|
| 311 |
+
if [ "${FUZZING_LANGUAGE:-}" = "jvm" ]; then
|
| 312 |
+
# Sanitizer runtime is linked into the Jazzer driver, so this check does not
|
| 313 |
+
# apply.
|
| 314 |
+
return 0
|
| 315 |
+
fi
|
| 316 |
+
|
| 317 |
+
if [ "${FUZZING_LANGUAGE:-}" = "javascript" ]; then
|
| 318 |
+
# Jazzer.js currently does not support using sanitizers with native Node.js addons.
|
| 319 |
+
# This is not relevant anyways since supporting this will be done by preloading
|
| 320 |
+
# the sanitizers in the wrapper script starting Jazzer.js.
|
| 321 |
+
return 0
|
| 322 |
+
fi
|
| 323 |
+
|
| 324 |
+
if [ "${FUZZING_LANGUAGE:-}" = "python" ]; then
|
| 325 |
+
# Sanitizer runtime is loaded via LD_PRELOAD, so this check does not apply.
|
| 326 |
+
return 0
|
| 327 |
+
fi
|
| 328 |
+
|
| 329 |
+
# For fuzztest fuzzers point to the binary instead of launcher script.
|
| 330 |
+
if [[ $FUZZER == *"@"* ]]; then
|
| 331 |
+
FUZZER=(${FUZZER//@/ }[0])
|
| 332 |
+
fi
|
| 333 |
+
|
| 334 |
+
CALL_INSN=
|
| 335 |
+
if [[ $ARCHITECTURE == "x86_64" ]]
|
| 336 |
+
then
|
| 337 |
+
CALL_INSN="callq?\s+[0-9a-f]+\s+<"
|
| 338 |
+
elif [[ $ARCHITECTURE == "i386" ]]
|
| 339 |
+
then
|
| 340 |
+
CALL_INSN="call\s+[0-9a-f]+\s+<"
|
| 341 |
+
elif [[ $ARCHITECTURE == "aarch64" ]]
|
| 342 |
+
then
|
| 343 |
+
CALL_INSN="bl\s+[0-9a-f]+\s+<"
|
| 344 |
+
else
|
| 345 |
+
echo "UNSUPPORTED ARCHITECTURE"
|
| 346 |
+
exit 1
|
| 347 |
+
fi
|
| 348 |
+
local ASAN_CALLS=$(objdump -dC $FUZZER | egrep "${CALL_INSN}__asan" -c)
|
| 349 |
+
local DFSAN_CALLS=$(objdump -dC $FUZZER | egrep "${CALL_INSN}__dfsan" -c)
|
| 350 |
+
local MSAN_CALLS=$(objdump -dC $FUZZER | egrep "${CALL_INSN}__msan" -c)
|
| 351 |
+
local UBSAN_CALLS=$(objdump -dC $FUZZER | egrep "${CALL_INSN}__ubsan" -c)
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
if [[ "$SANITIZER" = address ]]; then
|
| 355 |
+
check_asan_build $FUZZER $ASAN_CALLS $DFSAN_CALLS $MSAN_CALLS $UBSAN_CALLS
|
| 356 |
+
result=$?
|
| 357 |
+
elif [[ "$SANITIZER" = dataflow ]]; then
|
| 358 |
+
check_dfsan_build $FUZZER $ASAN_CALLS $DFSAN_CALLS $MSAN_CALLS $UBSAN_CALLS
|
| 359 |
+
result=$?
|
| 360 |
+
elif [[ "$SANITIZER" = memory ]]; then
|
| 361 |
+
check_msan_build $FUZZER $ASAN_CALLS $DFSAN_CALLS $MSAN_CALLS $UBSAN_CALLS
|
| 362 |
+
result=$?
|
| 363 |
+
elif [[ "$SANITIZER" = undefined ]]; then
|
| 364 |
+
check_ubsan_build $FUZZER $ASAN_CALLS $DFSAN_CALLS $MSAN_CALLS $UBSAN_CALLS
|
| 365 |
+
result=$?
|
| 366 |
+
elif [[ "$SANITIZER" = thread ]]; then
|
| 367 |
+
# TODO(metzman): Implement this.
|
| 368 |
+
result=0
|
| 369 |
+
fi
|
| 370 |
+
|
| 371 |
+
return $result
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
# Verify that the given fuzz target doesn't crash on the seed corpus.
|
| 375 |
+
function check_seed_corpus {
|
| 376 |
+
local FUZZER=$1
|
| 377 |
+
local FUZZER_NAME="$(basename $FUZZER)"
|
| 378 |
+
local FUZZER_OUTPUT="/tmp/$FUZZER_NAME.output"
|
| 379 |
+
|
| 380 |
+
if [[ "$FUZZING_ENGINE" != libfuzzer ]]; then
|
| 381 |
+
return 0
|
| 382 |
+
fi
|
| 383 |
+
|
| 384 |
+
# Set up common fuzzing arguments, otherwise "run_fuzzer" errors out.
|
| 385 |
+
if [ -z "$FUZZER_ARGS" ]; then
|
| 386 |
+
export FUZZER_ARGS="-rss_limit_mb=2560 -timeout=25"
|
| 387 |
+
fi
|
| 388 |
+
|
| 389 |
+
bash -c "run_fuzzer $FUZZER_NAME -runs=0" &> $FUZZER_OUTPUT
|
| 390 |
+
|
| 391 |
+
# Don't output anything if fuzz target hasn't crashed.
|
| 392 |
+
if [ $? -ne 0 ]; then
|
| 393 |
+
echo "BAD BUILD: $FUZZER has a crashing input in its seed corpus:"
|
| 394 |
+
cat $FUZZER_OUTPUT
|
| 395 |
+
return 1
|
| 396 |
+
fi
|
| 397 |
+
|
| 398 |
+
return 0
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
function check_architecture {
|
| 402 |
+
local FUZZER=$1
|
| 403 |
+
local FUZZER_NAME=$(basename $FUZZER)
|
| 404 |
+
|
| 405 |
+
if [ "${FUZZING_LANGUAGE:-}" = "jvm" ]; then
|
| 406 |
+
# The native dependencies of a JVM project are not packaged, but loaded
|
| 407 |
+
# dynamically at runtime and thus cannot be checked here.
|
| 408 |
+
return 0;
|
| 409 |
+
fi
|
| 410 |
+
|
| 411 |
+
if [ "${FUZZING_LANGUAGE:-}" = "javascript" ]; then
|
| 412 |
+
# Jazzer.js fuzzers are wrapper scripts that start the fuzz target with
|
| 413 |
+
# the Jazzer.js CLI.
|
| 414 |
+
return 0;
|
| 415 |
+
fi
|
| 416 |
+
|
| 417 |
+
if [ "${FUZZING_LANGUAGE:-}" = "python" ]; then
|
| 418 |
+
FUZZER=${FUZZER}.pkg
|
| 419 |
+
fi
|
| 420 |
+
|
| 421 |
+
# For fuzztest fuzzers point to the binary instead of launcher script.
|
| 422 |
+
if [[ $FUZZER == *"@"* ]]; then
|
| 423 |
+
FUZZER=(${FUZZER//@/ }[0])
|
| 424 |
+
fi
|
| 425 |
+
|
| 426 |
+
FILE_OUTPUT=$(file $FUZZER)
|
| 427 |
+
if [[ $ARCHITECTURE == "x86_64" ]]
|
| 428 |
+
then
|
| 429 |
+
echo $FILE_OUTPUT | grep "x86-64" > /dev/null
|
| 430 |
+
elif [[ $ARCHITECTURE == "i386" ]]
|
| 431 |
+
then
|
| 432 |
+
echo $FILE_OUTPUT | grep "80386" > /dev/null
|
| 433 |
+
elif [[ $ARCHITECTURE == "aarch64" ]]
|
| 434 |
+
then
|
| 435 |
+
echo $FILE_OUTPUT | grep "aarch64" > /dev/null
|
| 436 |
+
else
|
| 437 |
+
echo "UNSUPPORTED ARCHITECTURE"
|
| 438 |
+
return 1
|
| 439 |
+
fi
|
| 440 |
+
result=$?
|
| 441 |
+
if [[ $result != 0 ]]
|
| 442 |
+
then
|
| 443 |
+
echo "BAD BUILD $FUZZER is not built for architecture: $ARCHITECTURE"
|
| 444 |
+
echo "file command output: $FILE_OUTPUT"
|
| 445 |
+
echo "check_mixed_sanitizers test will fail."
|
| 446 |
+
fi
|
| 447 |
+
return $result
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
function main {
|
| 451 |
+
local FUZZER=$1
|
| 452 |
+
local AUXILIARY_FUZZER=${2:-}
|
| 453 |
+
local checks_failed=0
|
| 454 |
+
local result=0
|
| 455 |
+
|
| 456 |
+
export RUN_FUZZER_MODE="batch"
|
| 457 |
+
check_engine $FUZZER
|
| 458 |
+
result=$?
|
| 459 |
+
checks_failed=$(( $checks_failed + $result ))
|
| 460 |
+
|
| 461 |
+
check_architecture $FUZZER
|
| 462 |
+
result=$?
|
| 463 |
+
checks_failed=$(( $checks_failed + $result ))
|
| 464 |
+
|
| 465 |
+
if [[ "$FUZZING_ENGINE" == centipede \
|
| 466 |
+
&& "$SANITIZER" != none && "${HELPER:-}" == True ]]; then
|
| 467 |
+
check_mixed_sanitizers $AUXILIARY_FUZZER
|
| 468 |
+
else
|
| 469 |
+
check_mixed_sanitizers $FUZZER
|
| 470 |
+
fi
|
| 471 |
+
result=$?
|
| 472 |
+
checks_failed=$(( $checks_failed + $result ))
|
| 473 |
+
|
| 474 |
+
check_startup_crash $FUZZER
|
| 475 |
+
result=$?
|
| 476 |
+
checks_failed=$(( $checks_failed + $result ))
|
| 477 |
+
|
| 478 |
+
# TODO: re-enable after introducing bug auto-filing for bad builds.
|
| 479 |
+
# check_seed_corpus $FUZZER
|
| 480 |
+
return $checks_failed
|
| 481 |
+
}
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
if [ $# -ne 1 -a $# -ne 2 ]; then
|
| 485 |
+
echo "Usage: $0 <fuzz_target_binary> [<auxiliary_binary>]"
|
| 486 |
+
exit 1
|
| 487 |
+
fi
|
| 488 |
+
|
| 489 |
+
# Fuzz target path.
|
| 490 |
+
FUZZER=$1
|
| 491 |
+
AUXILIARY_FUZZER=${2:-}
|
| 492 |
+
|
| 493 |
+
main $FUZZER $AUXILIARY_FUZZER
|
| 494 |
+
exit $?
|
local-test-libexif-delta-01-exif-004/fuzz-tooling/infra/base-images/base-runner/coverage
ADDED
|
@@ -0,0 +1,549 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
#!/bin/bash -u
|
| 2 |
+
# Copyright 2018 Google Inc.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
#
|
| 16 |
+
################################################################################
|
| 17 |
+
cd $OUT
|
| 18 |
+
|
| 19 |
+
if (( $# > 0 )); then
|
| 20 |
+
FUZZ_TARGETS="$@"
|
| 21 |
+
else
|
| 22 |
+
FUZZ_TARGETS="$(find . -maxdepth 1 -type f -executable -printf '%P\n' | \
|
| 23 |
+
grep -v -x -F \
|
| 24 |
+
-e 'llvm-symbolizer' \
|
| 25 |
+
-e 'jazzer_agent_deploy.jar' \
|
| 26 |
+
-e 'jazzer_driver' \
|
| 27 |
+
-e 'jazzer_driver_with_sanitizer' \
|
| 28 |
+
-e 'sanitizer_with_fuzzer.so')"
|
| 29 |
+
fi
|
| 30 |
+
|
| 31 |
+
COVERAGE_OUTPUT_DIR=${COVERAGE_OUTPUT_DIR:-$OUT}
|
| 32 |
+
|
| 33 |
+
DUMPS_DIR="$COVERAGE_OUTPUT_DIR/dumps"
|
| 34 |
+
FUZZERS_COVERAGE_DUMPS_DIR="$DUMPS_DIR/fuzzers_coverage"
|
| 35 |
+
MERGED_COVERAGE_DIR="$COVERAGE_OUTPUT_DIR/merged_coverage"
|
| 36 |
+
FUZZER_STATS_DIR="$COVERAGE_OUTPUT_DIR/fuzzer_stats"
|
| 37 |
+
TEXTCOV_REPORT_DIR="$COVERAGE_OUTPUT_DIR/textcov_reports"
|
| 38 |
+
LOGS_DIR="$COVERAGE_OUTPUT_DIR/logs"
|
| 39 |
+
REPORT_ROOT_DIR="$COVERAGE_OUTPUT_DIR/report"
|
| 40 |
+
REPORT_BY_TARGET_ROOT_DIR="$COVERAGE_OUTPUT_DIR/report_target"
|
| 41 |
+
PLATFORM=linux
|
| 42 |
+
REPORT_PLATFORM_DIR="$COVERAGE_OUTPUT_DIR/report/$PLATFORM"
|
| 43 |
+
|
| 44 |
+
for directory in $DUMPS_DIR $FUZZER_STATS_DIR $LOGS_DIR $REPORT_ROOT_DIR $TEXTCOV_REPORT_DIR\
|
| 45 |
+
$REPORT_PLATFORM_DIR $REPORT_BY_TARGET_ROOT_DIR $FUZZERS_COVERAGE_DUMPS_DIR $MERGED_COVERAGE_DIR; do
|
| 46 |
+
rm -rf $directory
|
| 47 |
+
mkdir -p $directory
|
| 48 |
+
done
|
| 49 |
+
|
| 50 |
+
PROFILE_FILE="$DUMPS_DIR/merged.profdata"
|
| 51 |
+
SUMMARY_FILE="$REPORT_PLATFORM_DIR/summary.json"
|
| 52 |
+
COVERAGE_TARGET_FILE="$FUZZER_STATS_DIR/coverage_targets.txt"
|
| 53 |
+
|
| 54 |
+
# Use path mapping, as $SRC directory from the builder is copied into $OUT/$SRC.
|
| 55 |
+
PATH_EQUIVALENCE_ARGS="-path-equivalence=/,$OUT"
|
| 56 |
+
|
| 57 |
+
# It's important to use $COVERAGE_EXTRA_ARGS as the last argument, because it
|
| 58 |
+
# can contain paths to source files / directories which are positional args.
|
| 59 |
+
LLVM_COV_COMMON_ARGS="$PATH_EQUIVALENCE_ARGS \
|
| 60 |
+
-ignore-filename-regex=.*src/libfuzzer/.* $COVERAGE_EXTRA_ARGS"
|
| 61 |
+
|
| 62 |
+
# Options to extract branch coverage.
|
| 63 |
+
BRANCH_COV_ARGS="--show-branches=count --show-expansions"
|
| 64 |
+
|
| 65 |
+
# Timeout for running a single fuzz target.
|
| 66 |
+
TIMEOUT=1h
|
| 67 |
+
|
| 68 |
+
# This will be used by llvm-cov command to generate the actual report.
|
| 69 |
+
objects=""
|
| 70 |
+
|
| 71 |
+
# Number of CPUs available, this is needed for running tests in parallel.
|
| 72 |
+
# Set the max number of parallel jobs to be the CPU count and a max of 10.
|
| 73 |
+
NPROC=$(nproc)
|
| 74 |
+
MAX_PARALLEL_COUNT=10
|
| 75 |
+
|
| 76 |
+
CORPUS_DIR=${CORPUS_DIR:-"/corpus"}
|
| 77 |
+
|
| 78 |
+
function run_fuzz_target {
|
| 79 |
+
local target=$1
|
| 80 |
+
|
| 81 |
+
# '%1m' will produce separate dump files for every object. For example, if a
|
| 82 |
+
# fuzz target loads a shared library, we will have dumps for both of them.
|
| 83 |
+
local profraw_file="$DUMPS_DIR/$target.%1m.profraw"
|
| 84 |
+
local profraw_file_mask="$DUMPS_DIR/$target.*.profraw"
|
| 85 |
+
local profdata_file="$DUMPS_DIR/$target.profdata"
|
| 86 |
+
local corpus_real="$CORPUS_DIR/${target}"
|
| 87 |
+
|
| 88 |
+
# -merge=1 requires an output directory, create a new, empty dir for that.
|
| 89 |
+
local corpus_dummy="$OUT/dummy_corpus_dir_for_${target}"
|
| 90 |
+
rm -rf $corpus_dummy && mkdir -p $corpus_dummy
|
| 91 |
+
|
| 92 |
+
# Use -merge=1 instead of -runs=0 because merge is crash resistant and would
|
| 93 |
+
# let to get coverage using all corpus files even if there are crash inputs.
|
| 94 |
+
# Merge should not introduce any significant overhead compared to -runs=0,
|
| 95 |
+
# because (A) corpuses are already minimized; (B) we do not use sancov, and so
|
| 96 |
+
# libFuzzer always finishes merge with an empty output dir.
|
| 97 |
+
# Use 100s timeout instead of 25s as code coverage builds can be very slow.
|
| 98 |
+
local args="-merge=1 -timeout=100 $corpus_dummy $corpus_real"
|
| 99 |
+
|
| 100 |
+
export LLVM_PROFILE_FILE=$profraw_file
|
| 101 |
+
timeout $TIMEOUT $OUT/$target $args &> $LOGS_DIR/$target.log
|
| 102 |
+
if (( $? != 0 )); then
|
| 103 |
+
echo "Error occured while running $target:"
|
| 104 |
+
cat $LOGS_DIR/$target.log
|
| 105 |
+
fi
|
| 106 |
+
|
| 107 |
+
rm -rf $corpus_dummy
|
| 108 |
+
if (( $(du -c $profraw_file_mask | tail -n 1 | cut -f 1) == 0 )); then
|
| 109 |
+
# Skip fuzz targets that failed to produce profile dumps.
|
| 110 |
+
return 0
|
| 111 |
+
fi
|
| 112 |
+
|
| 113 |
+
# If necessary translate to latest profraw version.
|
| 114 |
+
if [[ $target == *"@"* ]]; then
|
| 115 |
+
# Extract fuzztest binary name from fuzztest wrapper script.
|
| 116 |
+
target=(${target//@/ }[0])
|
| 117 |
+
fi
|
| 118 |
+
profraw_update.py $OUT/$target -i $profraw_file_mask
|
| 119 |
+
llvm-profdata merge -j=1 -sparse $profraw_file_mask -o $profdata_file
|
| 120 |
+
|
| 121 |
+
# Delete unnecessary and (potentially) large .profraw files.
|
| 122 |
+
rm $profraw_file_mask
|
| 123 |
+
|
| 124 |
+
shared_libraries=$(coverage_helper shared_libs -build-dir=$OUT -object=$target)
|
| 125 |
+
|
| 126 |
+
llvm-cov export -summary-only -instr-profile=$profdata_file -object=$target \
|
| 127 |
+
$shared_libraries $LLVM_COV_COMMON_ARGS > $FUZZER_STATS_DIR/$target.json
|
| 128 |
+
|
| 129 |
+
# For introspector.
|
| 130 |
+
llvm-cov show -instr-profile=$profdata_file -object=$target -line-coverage-gt=0 $shared_libraries $BRANCH_COV_ARGS $LLVM_COV_COMMON_ARGS > ${TEXTCOV_REPORT_DIR}/$target.covreport
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
function run_go_fuzz_target {
|
| 134 |
+
local target=$1
|
| 135 |
+
|
| 136 |
+
echo "Running go target $target"
|
| 137 |
+
export FUZZ_CORPUS_DIR="$CORPUS_DIR/${target}/"
|
| 138 |
+
export FUZZ_PROFILE_NAME="$DUMPS_DIR/$target.perf"
|
| 139 |
+
|
| 140 |
+
# setup for native go fuzzers
|
| 141 |
+
cd $OUT
|
| 142 |
+
mkdir -p "testdata/fuzz/${target}"
|
| 143 |
+
cp -r "${FUZZ_CORPUS_DIR}" "testdata/fuzz/"
|
| 144 |
+
|
| 145 |
+
# rewrite libFuzzer corpus to Std Go corpus if native fuzzing
|
| 146 |
+
grep "TestFuzzCorpus" $target > /dev/null 2>&1 && $SYSGOPATH/bin/convertcorpus $target "testdata/fuzz/${target}"
|
| 147 |
+
cd -
|
| 148 |
+
|
| 149 |
+
timeout $TIMEOUT $OUT/$target -test.coverprofile $DUMPS_DIR/$target.profdata &> $LOGS_DIR/$target.log
|
| 150 |
+
if (( $? != 0 )); then
|
| 151 |
+
echo "Error occured while running $target:"
|
| 152 |
+
cat $LOGS_DIR/$target.log
|
| 153 |
+
fi
|
| 154 |
+
|
| 155 |
+
# cleanup after native go fuzzers
|
| 156 |
+
rm -r "${OUT}/testdata/fuzz/${target}"
|
| 157 |
+
|
| 158 |
+
# The Go 1.18 fuzzers are renamed to "*_fuzz_.go" during "infra/helper.py build_fuzzers".
|
| 159 |
+
# They are are therefore refered to as "*_fuzz_.go" in the profdata files.
|
| 160 |
+
# Since the copies named "*_fuzz_.go" do not exist in the file tree during
|
| 161 |
+
# the coverage build, we change the references in the .profdata files
|
| 162 |
+
# to the original file names.
|
| 163 |
+
#sed -i "s/_test.go_fuzz_.go/_test.go/g" $DUMPS_DIR/$target.profdata
|
| 164 |
+
# translate from golangish paths to current absolute paths
|
| 165 |
+
cat $OUT/$target.gocovpath | while read i; do sed -i $i $DUMPS_DIR/$target.profdata; done
|
| 166 |
+
# cf PATH_EQUIVALENCE_ARGS
|
| 167 |
+
sed -i 's=/='$OUT'/=' $DUMPS_DIR/$target.profdata
|
| 168 |
+
$SYSGOPATH/bin/gocovsum $DUMPS_DIR/$target.profdata > $FUZZER_STATS_DIR/$target.json
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
function run_python_fuzz_target {
|
| 172 |
+
local target=$1
|
| 173 |
+
local zipped_sources="$DUMPS_DIR/$target.deps.zip"
|
| 174 |
+
local corpus_real="$CORPUS_DIR/${target}"
|
| 175 |
+
# Write dummy stats file
|
| 176 |
+
echo "{}" > "$FUZZER_STATS_DIR/$target.json"
|
| 177 |
+
|
| 178 |
+
# Run fuzzer
|
| 179 |
+
$OUT/$target $corpus_real -atheris_runs=$(ls -la $corpus_real | wc -l) > $LOGS_DIR/$target.log 2>&1
|
| 180 |
+
if (( $? != 0 )); then
|
| 181 |
+
echo "Error happened getting coverage of $target"
|
| 182 |
+
echo "This is likely because Atheris did not exit gracefully"
|
| 183 |
+
cat $LOGS_DIR/$target.log
|
| 184 |
+
return 0
|
| 185 |
+
fi
|
| 186 |
+
mv .coverage $OUT/.coverage_$target
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
function run_java_fuzz_target {
|
| 190 |
+
local target=$1
|
| 191 |
+
|
| 192 |
+
local exec_file="$DUMPS_DIR/$target.exec"
|
| 193 |
+
local class_dump_dir="$DUMPS_DIR/${target}_classes/"
|
| 194 |
+
mkdir "$class_dump_dir"
|
| 195 |
+
local corpus_real="$CORPUS_DIR/${target}"
|
| 196 |
+
|
| 197 |
+
# -merge=1 requires an output directory, create a new, empty dir for that.
|
| 198 |
+
local corpus_dummy="$OUT/dummy_corpus_dir_for_${target}"
|
| 199 |
+
rm -rf $corpus_dummy && mkdir -p $corpus_dummy
|
| 200 |
+
|
| 201 |
+
# Use 100s timeout instead of 25s as code coverage builds can be very slow.
|
| 202 |
+
local jacoco_args="destfile=$exec_file,classdumpdir=$class_dump_dir,excludes=com.code_intelligence.jazzer.*\\:com.sun.tools.attach.VirtualMachine"
|
| 203 |
+
local args="-merge=1 -timeout=100 --nohooks \
|
| 204 |
+
--additional_jvm_args=-javaagent\\:/opt/jacoco-agent.jar=$jacoco_args \
|
| 205 |
+
$corpus_dummy $corpus_real"
|
| 206 |
+
|
| 207 |
+
timeout $TIMEOUT $OUT/$target $args &> $LOGS_DIR/$target.log
|
| 208 |
+
if (( $? != 0 )); then
|
| 209 |
+
echo "Error occured while running $target:"
|
| 210 |
+
cat $LOGS_DIR/$target.log
|
| 211 |
+
fi
|
| 212 |
+
|
| 213 |
+
if (( $(du -c $exec_file | tail -n 1 | cut -f 1) == 0 )); then
|
| 214 |
+
# Skip fuzz targets that failed to produce .exec files.
|
| 215 |
+
echo "$target failed to produce .exec file."
|
| 216 |
+
return 0
|
| 217 |
+
fi
|
| 218 |
+
|
| 219 |
+
# Generate XML report only as input to jacoco_report_converter.
|
| 220 |
+
# Source files are not needed for the summary.
|
| 221 |
+
local xml_report="$DUMPS_DIR/${target}.xml"
|
| 222 |
+
local summary_file="$FUZZER_STATS_DIR/$target.json"
|
| 223 |
+
java -jar /opt/jacoco-cli.jar report $exec_file \
|
| 224 |
+
--xml $xml_report \
|
| 225 |
+
--classfiles $class_dump_dir
|
| 226 |
+
|
| 227 |
+
# Write llvm-cov summary file.
|
| 228 |
+
jacoco_report_converter.py $xml_report $summary_file
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
function run_javascript_fuzz_target {
|
| 232 |
+
local target=$1
|
| 233 |
+
local corpus_real="$CORPUS_DIR/${target}"
|
| 234 |
+
|
| 235 |
+
# -merge=1 requires an output directory, create a new, empty dir for that.
|
| 236 |
+
local corpus_dummy="$OUT/dummy_corpus_dir_for_${target}"
|
| 237 |
+
rm -rf $corpus_dummy && mkdir -p $corpus_dummy
|
| 238 |
+
|
| 239 |
+
# IstanbulJS currently does not work when the tested program creates
|
| 240 |
+
# subprocesses. For this reason, we first minimize the corpus removing
|
| 241 |
+
# any crashing inputs so that we can report source-based code coverage
|
| 242 |
+
# with a single sweep over the minimized corpus
|
| 243 |
+
local merge_args="-merge=1 -timeout=100 $corpus_dummy $corpus_real"
|
| 244 |
+
timeout $TIMEOUT $OUT/$target $merge_args &> $LOGS_DIR/$target.log
|
| 245 |
+
|
| 246 |
+
# nyc saves the coverage reports in a directory with the default name "coverage"
|
| 247 |
+
local coverage_dir="$DUMPS_DIR/coverage_dir_for_${target}"
|
| 248 |
+
rm -rf $coverage_dir && mkdir -p $coverage_dir
|
| 249 |
+
|
| 250 |
+
local nyc_json_coverage_file="$coverage_dir/coverage-final.json"
|
| 251 |
+
local nyc_json_summary_file="$coverage_dir/coverage-summary.json"
|
| 252 |
+
|
| 253 |
+
local args="-runs=0 $corpus_dummy"
|
| 254 |
+
local jazzerjs_args="--coverage --coverageDirectory $coverage_dir --coverageReporters json --coverageReporters json-summary"
|
| 255 |
+
|
| 256 |
+
JAZZERJS_EXTRA_ARGS=$jazzerjs_args $OUT/$target $args &> $LOGS_DIR/$target.log
|
| 257 |
+
|
| 258 |
+
if (( $? != 0 )); then
|
| 259 |
+
echo "Error occured while running $target:"
|
| 260 |
+
cat $LOGS_DIR/$target.log
|
| 261 |
+
fi
|
| 262 |
+
|
| 263 |
+
if [ ! -s $nyc_json_coverage_file ]; then
|
| 264 |
+
# Skip fuzz targets that failed to produce coverage-final.json file.
|
| 265 |
+
echo "$target failed to produce coverage-final.json file."
|
| 266 |
+
return 0
|
| 267 |
+
fi
|
| 268 |
+
|
| 269 |
+
cp $nyc_json_coverage_file $FUZZERS_COVERAGE_DUMPS_DIR/$target.json
|
| 270 |
+
|
| 271 |
+
local summary_file="$FUZZER_STATS_DIR/$target.json"
|
| 272 |
+
|
| 273 |
+
nyc_report_converter.py $nyc_json_summary_file $summary_file
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
function generate_html {
|
| 277 |
+
local profdata=$1
|
| 278 |
+
local shared_libraries=$2
|
| 279 |
+
local objects=$3
|
| 280 |
+
local output_dir=$4
|
| 281 |
+
|
| 282 |
+
rm -rf "$output_dir"
|
| 283 |
+
mkdir -p "$output_dir/$PLATFORM"
|
| 284 |
+
|
| 285 |
+
local llvm_cov_args="-instr-profile=$profdata $objects $LLVM_COV_COMMON_ARGS"
|
| 286 |
+
llvm-cov show -format=html -output-dir=$output_dir -Xdemangler rcfilt $llvm_cov_args
|
| 287 |
+
|
| 288 |
+
# Export coverage summary in JSON format.
|
| 289 |
+
local summary_file=$output_dir/$PLATFORM/summary.json
|
| 290 |
+
|
| 291 |
+
llvm-cov export -summary-only $llvm_cov_args > $summary_file
|
| 292 |
+
|
| 293 |
+
coverage_helper -v post_process -src-root-dir=/ -summary-file=$summary_file \
|
| 294 |
+
-output-dir=$output_dir $PATH_EQUIVALENCE_ARGS
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
export SYSGOPATH=$GOPATH
|
| 298 |
+
export GOPATH=$OUT/$GOPATH
|
| 299 |
+
# Run each fuzz target, generate raw coverage dumps.
|
| 300 |
+
for fuzz_target in $FUZZ_TARGETS; do
|
| 301 |
+
# Test if fuzz target is a golang one.
|
| 302 |
+
if [[ $FUZZING_LANGUAGE == "go" ]]; then
|
| 303 |
+
# Continue if not a fuzz target.
|
| 304 |
+
if [[ $FUZZING_ENGINE != "none" ]]; then
|
| 305 |
+
grep "FUZZ_CORPUS_DIR" $fuzz_target > /dev/null 2>&1 || grep "testing\.T" $fuzz_target > /dev/null 2>&1 || continue
|
| 306 |
+
fi
|
| 307 |
+
# Log the target in the targets file.
|
| 308 |
+
echo ${fuzz_target} >> $COVERAGE_TARGET_FILE
|
| 309 |
+
|
| 310 |
+
# Run the coverage collection.
|
| 311 |
+
run_go_fuzz_target $fuzz_target &
|
| 312 |
+
elif [[ $FUZZING_LANGUAGE == "python" ]]; then
|
| 313 |
+
echo "Entering python fuzzing"
|
| 314 |
+
# Log the target in the targets file.
|
| 315 |
+
echo ${fuzz_target} >> $COVERAGE_TARGET_FILE
|
| 316 |
+
|
| 317 |
+
# Run the coverage collection.
|
| 318 |
+
run_python_fuzz_target $fuzz_target
|
| 319 |
+
elif [[ $FUZZING_LANGUAGE == "jvm" ]]; then
|
| 320 |
+
# Continue if not a fuzz target.
|
| 321 |
+
if [[ $FUZZING_ENGINE != "none" ]]; then
|
| 322 |
+
grep "LLVMFuzzerTestOneInput" $fuzz_target > /dev/null 2>&1 || continue
|
| 323 |
+
fi
|
| 324 |
+
|
| 325 |
+
echo "Running $fuzz_target"
|
| 326 |
+
# Log the target in the targets file.
|
| 327 |
+
echo ${fuzz_target} >> $COVERAGE_TARGET_FILE
|
| 328 |
+
|
| 329 |
+
# Run the coverage collection.
|
| 330 |
+
run_java_fuzz_target $fuzz_target &
|
| 331 |
+
elif [[ $FUZZING_LANGUAGE == "javascript" ]]; then
|
| 332 |
+
# Continue if not a fuzz target.
|
| 333 |
+
if [[ $FUZZING_ENGINE != "none" ]]; then
|
| 334 |
+
grep "LLVMFuzzerTestOneInput" $fuzz_target > /dev/null 2>&1 || continue
|
| 335 |
+
fi
|
| 336 |
+
|
| 337 |
+
echo "Running $fuzz_target"
|
| 338 |
+
# Log the target in the targets file.
|
| 339 |
+
echo ${fuzz_target} >> $COVERAGE_TARGET_FILE
|
| 340 |
+
|
| 341 |
+
# Run the coverage collection.
|
| 342 |
+
run_javascript_fuzz_target $fuzz_target &
|
| 343 |
+
else
|
| 344 |
+
# Continue if not a fuzz target.
|
| 345 |
+
if [[ $FUZZING_ENGINE != "none" ]]; then
|
| 346 |
+
grep "LLVMFuzzerTestOneInput" $fuzz_target > /dev/null 2>&1 || continue
|
| 347 |
+
fi
|
| 348 |
+
|
| 349 |
+
echo "Running $fuzz_target"
|
| 350 |
+
# Log the target in the targets file.
|
| 351 |
+
echo ${fuzz_target} >> $COVERAGE_TARGET_FILE
|
| 352 |
+
|
| 353 |
+
# Run the coverage collection.
|
| 354 |
+
run_fuzz_target $fuzz_target &
|
| 355 |
+
|
| 356 |
+
# Rewrite object if its a FUZZTEST target
|
| 357 |
+
if [[ $fuzz_target == *"@"* ]]; then
|
| 358 |
+
# Extract fuzztest binary name from fuzztest wrapper script.
|
| 359 |
+
fuzz_target=(${fuzz_target//@/ }[0])
|
| 360 |
+
fi
|
| 361 |
+
if [[ -z $objects ]]; then
|
| 362 |
+
# The first object needs to be passed without -object= flag.
|
| 363 |
+
objects="$fuzz_target"
|
| 364 |
+
else
|
| 365 |
+
objects="$objects -object=$fuzz_target"
|
| 366 |
+
fi
|
| 367 |
+
fi
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
# Limit the number of processes to be spawned.
|
| 371 |
+
n_child_proc=$(jobs -rp | wc -l)
|
| 372 |
+
while [[ "$n_child_proc" -eq "$NPROC" || "$n_child_proc" -gt "$MAX_PARALLEL_COUNT" ]]; do
|
| 373 |
+
sleep 4
|
| 374 |
+
n_child_proc=$(jobs -rp | wc -l)
|
| 375 |
+
done
|
| 376 |
+
done
|
| 377 |
+
|
| 378 |
+
# Wait for background processes to finish.
|
| 379 |
+
wait
|
| 380 |
+
|
| 381 |
+
if [[ $FUZZING_LANGUAGE == "go" ]]; then
|
| 382 |
+
echo $DUMPS_DIR
|
| 383 |
+
$SYSGOPATH/bin/gocovmerge $DUMPS_DIR/*.profdata > fuzz.cov
|
| 384 |
+
gotoolcover -html=fuzz.cov -o $REPORT_ROOT_DIR/index.html
|
| 385 |
+
$SYSGOPATH/bin/gocovsum fuzz.cov > $SUMMARY_FILE
|
| 386 |
+
cp $REPORT_ROOT_DIR/index.html $REPORT_PLATFORM_DIR/index.html
|
| 387 |
+
$SYSGOPATH/bin/pprof-merge $DUMPS_DIR/*.perf.cpu.prof
|
| 388 |
+
mv merged.data $REPORT_ROOT_DIR/cpu.prof
|
| 389 |
+
$SYSGOPATH/bin/pprof-merge $DUMPS_DIR/*.perf.heap.prof
|
| 390 |
+
mv merged.data $REPORT_ROOT_DIR/heap.prof
|
| 391 |
+
#TODO some proxy for go tool pprof -http=127.0.0.1:8001 $DUMPS_DIR/cpu.prof
|
| 392 |
+
echo "Finished generating code coverage report for Go fuzz targets."
|
| 393 |
+
elif [[ $FUZZING_LANGUAGE == "python" ]]; then
|
| 394 |
+
# Extract source files from all dependency zip folders
|
| 395 |
+
mkdir -p /pythoncovmergedfiles/medio
|
| 396 |
+
PYCOVDIR=/pycovdir/
|
| 397 |
+
mkdir $PYCOVDIR
|
| 398 |
+
for fuzzer in $FUZZ_TARGETS; do
|
| 399 |
+
fuzzer_deps=${fuzzer}.pkg.deps.zip
|
| 400 |
+
unzip $OUT/${fuzzer_deps}
|
| 401 |
+
rsync -r ./medio /pythoncovmergedfiles/medio
|
| 402 |
+
rm -rf ./medio
|
| 403 |
+
|
| 404 |
+
# Translate paths in unzipped folders to paths that we can use
|
| 405 |
+
mv $OUT/.coverage_$fuzzer .coverage
|
| 406 |
+
python3 /usr/local/bin/python_coverage_runner_help.py translate /pythoncovmergedfiles/medio
|
| 407 |
+
cp .new_coverage $PYCOVDIR/.coverage_$fuzzer
|
| 408 |
+
cp .new_coverage $OUT/coverage_d_$fuzzer
|
| 409 |
+
done
|
| 410 |
+
|
| 411 |
+
# Combine coverage
|
| 412 |
+
cd $PYCOVDIR
|
| 413 |
+
python3 /usr/local/bin/python_coverage_runner_help.py combine .coverage_*
|
| 414 |
+
python3 /usr/local/bin/python_coverage_runner_help.py html
|
| 415 |
+
# Produce all_cov file used by fuzz introspector.
|
| 416 |
+
python3 /usr/local/bin/python_coverage_runner_help.py json -o ${TEXTCOV_REPORT_DIR}/all_cov.json
|
| 417 |
+
|
| 418 |
+
# Generate .json with similar format to llvm-cov output.
|
| 419 |
+
python3 /usr/local/bin/python_coverage_runner_help.py \
|
| 420 |
+
convert-to-summary-json ${TEXTCOV_REPORT_DIR}/all_cov.json $SUMMARY_FILE
|
| 421 |
+
|
| 422 |
+
# Copy coverage date out
|
| 423 |
+
cp htmlcov/status.json ${TEXTCOV_REPORT_DIR}/html_status.json
|
| 424 |
+
|
| 425 |
+
mv htmlcov/* $REPORT_PLATFORM_DIR/
|
| 426 |
+
mv .coverage_* $REPORT_PLATFORM_DIR/
|
| 427 |
+
elif [[ $FUZZING_LANGUAGE == "jvm" ]]; then
|
| 428 |
+
|
| 429 |
+
# From this point on the script does not tolerate any errors.
|
| 430 |
+
set -e
|
| 431 |
+
|
| 432 |
+
# Merge .exec files from the individual targets.
|
| 433 |
+
jacoco_merged_exec=$DUMPS_DIR/jacoco.merged.exec
|
| 434 |
+
java -jar /opt/jacoco-cli.jar merge $DUMPS_DIR/*.exec \
|
| 435 |
+
--destfile $jacoco_merged_exec
|
| 436 |
+
|
| 437 |
+
# Prepare classes directory for jacoco process
|
| 438 |
+
classes_dir=$DUMPS_DIR/classes
|
| 439 |
+
mkdir $classes_dir
|
| 440 |
+
|
| 441 |
+
# Only copy class files found in $OUT/$SRC to ensure they are
|
| 442 |
+
# lively compiled from the project, avoiding inclusion of
|
| 443 |
+
# dependency classes. This also includes the fuzzer classes.
|
| 444 |
+
find "$OUT/$SRC" -type f -name "*.class" | while read -r class_file; do
|
| 445 |
+
# Skip module-info.class
|
| 446 |
+
if [[ "$(basename "$class_file")" == "module-info.class" ]]; then
|
| 447 |
+
continue
|
| 448 |
+
fi
|
| 449 |
+
|
| 450 |
+
# Use javap to extract the fully qualified name of the class and copy it to $classes_dir
|
| 451 |
+
fqn=$(javap -verbose "$class_file" 2>/dev/null | grep "this_class:" | grep -oP '(?<=// ).*')
|
| 452 |
+
if [ -n "$fqn" ]; then
|
| 453 |
+
mkdir -p $classes_dir/$(dirname $fqn)
|
| 454 |
+
cp $class_file $classes_dir/$fqn.class
|
| 455 |
+
fi
|
| 456 |
+
done
|
| 457 |
+
|
| 458 |
+
# Heuristically determine source directories based on Maven structure.
|
| 459 |
+
# Always include the $SRC root as it likely contains the fuzzer sources.
|
| 460 |
+
sourcefiles_args=(--sourcefiles $OUT/$SRC)
|
| 461 |
+
source_dirs=$(find $OUT/$SRC -type d -name 'java')
|
| 462 |
+
for source_dir in $source_dirs; do
|
| 463 |
+
sourcefiles_args+=(--sourcefiles "$source_dir")
|
| 464 |
+
done
|
| 465 |
+
|
| 466 |
+
# Generate HTML and XML reports.
|
| 467 |
+
xml_report=$REPORT_PLATFORM_DIR/index.xml
|
| 468 |
+
java -jar /opt/jacoco-cli.jar report $jacoco_merged_exec \
|
| 469 |
+
--html $REPORT_PLATFORM_DIR \
|
| 470 |
+
--xml $xml_report \
|
| 471 |
+
--classfiles $classes_dir \
|
| 472 |
+
"${sourcefiles_args[@]}"
|
| 473 |
+
|
| 474 |
+
# Also serve the raw exec file and XML report, which can be useful for
|
| 475 |
+
# automated analysis.
|
| 476 |
+
cp $jacoco_merged_exec $REPORT_PLATFORM_DIR/jacoco.exec
|
| 477 |
+
cp $xml_report $REPORT_PLATFORM_DIR/jacoco.xml
|
| 478 |
+
cp $xml_report $TEXTCOV_REPORT_DIR/jacoco.xml
|
| 479 |
+
|
| 480 |
+
# Write llvm-cov summary file.
|
| 481 |
+
jacoco_report_converter.py $xml_report $SUMMARY_FILE
|
| 482 |
+
|
| 483 |
+
set +e
|
| 484 |
+
elif [[ $FUZZING_LANGUAGE == "javascript" ]]; then
|
| 485 |
+
|
| 486 |
+
# From this point on the script does not tolerate any errors.
|
| 487 |
+
set -e
|
| 488 |
+
|
| 489 |
+
json_report=$MERGED_COVERAGE_DIR/coverage.json
|
| 490 |
+
nyc merge $FUZZERS_COVERAGE_DUMPS_DIR $json_report
|
| 491 |
+
|
| 492 |
+
nyc report -t $MERGED_COVERAGE_DIR --report-dir $REPORT_PLATFORM_DIR --reporter=html --reporter=json-summary
|
| 493 |
+
|
| 494 |
+
nyc_json_summary_file=$REPORT_PLATFORM_DIR/coverage-summary.json
|
| 495 |
+
|
| 496 |
+
# Write llvm-cov summary file.
|
| 497 |
+
nyc_report_converter.py $nyc_json_summary_file $SUMMARY_FILE
|
| 498 |
+
|
| 499 |
+
set +e
|
| 500 |
+
else
|
| 501 |
+
|
| 502 |
+
# From this point on the script does not tolerate any errors.
|
| 503 |
+
set -e
|
| 504 |
+
|
| 505 |
+
# Merge all dumps from the individual targets.
|
| 506 |
+
rm -f $PROFILE_FILE
|
| 507 |
+
llvm-profdata merge -sparse $DUMPS_DIR/*.profdata -o $PROFILE_FILE
|
| 508 |
+
|
| 509 |
+
# TODO(mmoroz): add script from Chromium for rendering directory view reports.
|
| 510 |
+
# The first path in $objects does not have -object= prefix (llvm-cov format).
|
| 511 |
+
shared_libraries=$(coverage_helper shared_libs -build-dir=$OUT -object=$objects)
|
| 512 |
+
objects="$objects $shared_libraries"
|
| 513 |
+
|
| 514 |
+
generate_html $PROFILE_FILE "$shared_libraries" "$objects" "$REPORT_ROOT_DIR"
|
| 515 |
+
|
| 516 |
+
# Per target reports.
|
| 517 |
+
for fuzz_target in $FUZZ_TARGETS; do
|
| 518 |
+
if [[ $fuzz_target == *"@"* ]]; then
|
| 519 |
+
profdata_path=$DUMPS_DIR/$fuzz_target.profdata
|
| 520 |
+
report_dir=$REPORT_BY_TARGET_ROOT_DIR/$fuzz_target
|
| 521 |
+
# Extract fuzztest binary name from fuzztest wrapper script.
|
| 522 |
+
fuzz_target=(${fuzz_target//@/ }[0])
|
| 523 |
+
else
|
| 524 |
+
profdata_path=$DUMPS_DIR/$fuzz_target.profdata
|
| 525 |
+
report_dir=$REPORT_BY_TARGET_ROOT_DIR/$fuzz_target
|
| 526 |
+
fi
|
| 527 |
+
if [[ ! -f "$profdata_path" ]]; then
|
| 528 |
+
echo "WARNING: $fuzz_target has no profdata generated."
|
| 529 |
+
continue
|
| 530 |
+
fi
|
| 531 |
+
|
| 532 |
+
generate_html $profdata_path "$shared_libraries" "$fuzz_target" "$report_dir"
|
| 533 |
+
done
|
| 534 |
+
|
| 535 |
+
set +e
|
| 536 |
+
fi
|
| 537 |
+
|
| 538 |
+
# Make sure report is readable.
|
| 539 |
+
chmod -R +r $REPORT_ROOT_DIR $REPORT_BY_TARGET_ROOT_DIR
|
| 540 |
+
find $REPORT_ROOT_DIR $REPORT_BY_TARGET_ROOT_DIR -type d -exec chmod +x {} +
|
| 541 |
+
|
| 542 |
+
# HTTP_PORT is optional.
|
| 543 |
+
set +u
|
| 544 |
+
if [[ -n $HTTP_PORT ]]; then
|
| 545 |
+
# Serve the report locally.
|
| 546 |
+
echo "Serving the report on http://127.0.0.1:$HTTP_PORT/linux/index.html"
|
| 547 |
+
cd $REPORT_ROOT_DIR
|
| 548 |
+
python3 -m http.server $HTTP_PORT
|
| 549 |
+
fi
|