summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add two internal symbols to libgphoto2_portwip-testHans Ulrich Niedermann2020-02-191-0/+3
| | | | | This is supposed to fix OSX build issue introduced with 2afff46f5aef8d03d3be1395a1a4a01005bb6853.
* travis-ci: exclude OSX gcc from build matrixHans Ulrich Niedermann2020-02-191-0/+8
| | | | | | | | | | | | | | | | | On OSX, 'gcc' is an alias for 'clang', so on OSX, both the so-called 'gcc' and the 'clang' builds actually use clang. It would be some work to find out which gcc to maybe install and then use on OSX, so we disable the 'gcc' builds for now. If someone wants actual gcc builds on OSX, they can take a look later at https://docs.travis-ci.com/user/languages/c/#gcc-on-macos and experiment with finding out which gcc versions are actually available by default and available in brew and use those (after possible first installing them).
* log the ptp opcode + params just to be sure we passed in the right valuesMarcus Meissner2020-02-191-0/+2
|
* rewrite the port allocation code to not use freed resources,Marcus Meissner2020-02-191-3/+15
| | | | | | although this kind of construct likely does not work fixes crashes with AFL
* travis-ci: Group all build matrix definitionsHans Ulrich Niedermann2020-02-191-4/+4
| | | | Define all build matrix definitions at the start of .travis.yml.
* travis-ci: Print --version for autoconf and automakeHans Ulrich Niedermann2020-02-191-0/+2
| | | | This can help while debugging build issues.
* Use standard syntax for the AC_DEFUN()ed macrosHans Ulrich Niedermann2020-02-191-6/+9
|
* Fix _GP_EOF m4_pattern bug introduced in 6f65d24796aHans Ulrich Niedermann2020-02-191-2/+0
| | | | Fixes: 6f65d24796a0aaca0c20f4c074aa71e39f38e68d
* travis-ci: Print the exact CC and CXX usedHans Ulrich Niedermann2020-02-193-3/+24
| | | | | This prints a number of CC and CXX version messages, so we can see better which C and C++ compilers are actually in use.
* Make sure both C and C++ programs including gphoto2 headers compileHans Ulrich Niedermann2020-02-195-6/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | Check that programs including libgphoto2 headers compile when compiled for a number of different language standards: C: ansi c99 c11 C++: ansi c++98 c++11 c++14 c++17 For each of these language standards, if the compiler does not compile an empty example program, we do not test whether compiling with the gphoto2/*.h headers included works. This will work with GCC as the compiler, and also should work with CLANG as the compiler as CLANG is mostly compatible in these matters. On other compilers, the test compile of the empty program should fail, and thus no checks with the gphoto2/*.h headers included will be performed. C90/ANSI C apparently does not define __STDC_VERSION__, so the C source code needed to be changed to become ANSI C compatible. In C++ pedantic compilation source, we now use actual C++ code instead of relying on C code working when compiled as C++ code. In Travis CI, we now actually require both C and C++.
* configure: Set SLEEP=no now to disable warning sleepsHans Ulrich Niedermann2020-02-194-7/+40
| | | | | | | | | Allow setting SLEEP=no to disable sleep on warnings like ../configure SLEEP=no --prefix=/foo/bar ... This is implemented with GP_SLEEP and gp_sleep similar to m4sh's AS_ECHO and $as_echo.
* tests/Makefile.am: Consistent comments and definitionsHans Ulrich Niedermann2020-02-191-31/+56
| | | | | Consistently define test programs, and use comments to structurize the tests/Makefile.am file.
* examples: Remove unused TESTS= instanceHans Ulrich Niedermann2020-02-181-82/+0
| | | | | | | | Any TESTS definition causes "make check" to run a test suite, even if no tests are actually defined. So we remove the empty TESTS= from examples/Makefile.am, and keep on using the TESTS in the tests/Makefile.am file.
* added some new SONY Property defines, hook up sony capturetargetMarcus Meissner2020-02-182-2/+25
|
* New set based camlib definition and --with-camlibs handlingHans Ulrich Niedermann2020-02-178-206/+1436
| | | | | | | | | | | | | | This uses proper set operations both for GP_CAMLIB and for handling the --with-camlibs value. This allows all GP_CAMLIB definitions to be present at autoreconf time (as m4 code) time while some camlib definitions being conditional at the time of the configure run (in the sh code). The ./configure output is still a bit verbose, but we can reduce that verbosity later when we have found out that this works well on people's different systems. Fixes: https://github.com/gphoto/libgphoto2/issues/467
* travis-ci: "make uninstall" needs sudo as well, of courseHans Ulrich Niedermann2020-02-171-1/+1
| | | | | If "make install" runs with sudo, of course "make uninstall" will need to run under sudo as well.
* travis-ci: Apart from .travis-script.sh, only one quick buildHans Ulrich Niedermann2020-02-171-3/+1
| | | | | | | That one quick build is in-tree, includes sudo for "make install", and does both "make clean" and "make uninstall". That should exercise a few more code paths.
* travis-ci script: clean up directory usage, add usage commentHans Ulrich Niedermann2020-02-171-9/+16
|
* travis-ci: Move builds to separate script fileHans Ulrich Niedermann2020-02-172-0/+61
| | | | | | | | | | | | | | | | | | | | | | | The handling of failing build steps has become too involved to put it into a single command line in a ".travis.yml". The new build script does a few things differently: * No sudo use. * Builds for and installs into separate root --prefix * Builds as out of tree builds per build The new things the new build script does: * Print config.log and the test-suite.log files if the configure or the "make check" stages have failed. * Print the version information, both short and verbose. * Print a list of the installed files. The things the new build script does NOT do: * Run "make clean" or "make uninstall" We are keeping the old script lines around for the time being. I cannot see a difference, but someone more familiar with "vusb" and "examples/sample-afl" might.
* travis-ci: sleep after autoreconf as possible workaroundHans Ulrich Niedermann2020-02-171-1/+1
| | | | | Sleeping after generating the configure file might help avoid the build system sanity check fails.
* libgphoto2-port: Add libexif to version informationHans Ulrich Niedermann2020-02-171-0/+10
|
* Add print-libgphoto2-version programHans Ulrich Niedermann2020-02-152-0/+161
| | | | | | | | | The new print-libgphoto2-version program prints the complete libgphoto2 version message in both short and verbose. This functionality had not been available before, and we want it for checking later changes to the camlib list part of the version messages.
* travis-ci: If make check fails, cat the test-suite.log filesHans Ulrich Niedermann2020-02-151-2/+2
| | | | | This should help with finding the actual causes of test suite failures during travis-ci checks.
* travis-ci: print system date and ls -l configure to help with debuggingHans Ulrich Niedermann2020-02-141-0/+2
| | | | | Print the system date and "ls -l configure" to help with debugging the sane build system check failure.
* error checking during file retrieval (AFL)Marcus Meissner2020-02-141-2/+7
|
* initialize memory to NULL, check if read (AFL)Marcus Meissner2020-02-142-2/+3
|
* Avoid "echo" in configure.ac in some placesHans Ulrich Niedermann2020-02-141-13/+15
| | | | | | | This should avoid some possible incompatibities in the case of the multi line string argument to "echo", and cleans up the code by replacing a number of "echo" commands with a single AC_MSG_WARN.
* check buffersize before decoding to avoid overread (AFL)Marcus Meissner2020-02-131-6/+11
|
* check for filesize to avoid overread (AFL)Marcus Meissner2020-02-131-0/+5
|
* avoid going below arrax index 0 (AFL)Marcus Meissner2020-02-111-1/+1
|
* log invaliddram and return error to avoid endless loop (AFL)Marcus Meissner2020-02-101-1/+2
|
* do not sleep during fuzzing (AFL)Marcus Meissner2020-02-102-0/+9
|
* fixed integer overflow check to avoid overflow (AFL)Marcus Meissner2020-02-081-1/+1
|
* Added nikon coolpix 4100 (sierra) (It also works in PTP mode though)Marcus Meissner2020-02-031-0/+3
|
* added fix for GoPro files not appearing caused by another hack for another ↵Marcus Meissner2020-02-022-3/+8
| | | | device
* faster fuzzingMarcus Meissner2020-02-011-0/+4
|
* handle partial read files, avoid crashes (AFL)Marcus Meissner2020-02-012-1/+5
|
* added gopro hero 7 silverMarcus Meissner2020-02-011-0/+2
|
* avoid usleep during fuzzing (AFL)Marcus Meissner2020-02-011-0/+5
|
* handle size 0 to avoid buffer underread (AFL)Marcus Meissner2020-02-011-0/+2
|
* init revision in case of errors to avoid uninit usage (AFL)Marcus Meissner2020-01-311-0/+1
|
* added Z50Marcus Meissner2020-01-281-1/+1
|
* added nikon z50Marcus Meissner2020-01-281-0/+4
|
* Merge pull request #459 from tail-feather/support-fuji-isoMarcus Meissner2020-01-281-0/+49
|\ | | | | Support for Fujifilm ISO extension
| * Merge remote-tracking branch 'origin/master' into support-fuji-isoTSUNODA Koji2019-11-251-5/+0
| |\
| * | Add Fuji exception for ExposureIndex (DataType:INT32)TSUNODA Koji2019-11-211-0/+49
| | |
* | | Merge pull request #470 from knro/masterMarcus Meissner2020-01-281-4/+3
|\ \ \ | | | | | | | | Add Nikon D7500 Image Quality
| * \ \ Merge branch 'master' into masterJasem Mutlaq2020-01-2814-42/+144
| |\ \ \ | |/ / / |/| | |
* | | | added more sanity checks to avoid NULL ptr deref (AFL)Marcus Meissner2020-01-261-2/+5
| | | |
* | | | updatedMarcus Meissner2020-01-261-4/+6
| | | |