]> granicus.if.org Git - graphviz/log
graphviz
4 years agoadd compilation of the C examples to the test suite
Matthew Fernandez [Sat, 4 Jul 2020 17:28:35 +0000 (10:28 -0700)]
add compilation of the C examples to the test suite

4 years agoinstall Graphviz dev libraries during CI testing
Matthew Fernandez [Sun, 5 Jul 2020 18:53:42 +0000 (11:53 -0700)]
install Graphviz dev libraries during CI testing

This allows us to begin testing code that compiles and links against Graphviz
libraries.

4 years agofix: update simple.c example for latest API
Matthew Fernandez [Sat, 4 Jul 2020 17:12:05 +0000 (10:12 -0700)]
fix: update simple.c example for latest API

4 years agofix: update neatopack.c example for latest API
Matthew Fernandez [Sat, 4 Jul 2020 17:11:12 +0000 (10:11 -0700)]
fix: update neatopack.c example for latest API

4 years agofix: update dot.c example for latest API
Matthew Fernandez [Sat, 4 Jul 2020 17:10:16 +0000 (10:10 -0700)]
fix: update dot.c example for latest API

4 years agofix: update example.c to latest API
Matthew Fernandez [Sat, 4 Jul 2020 17:09:22 +0000 (10:09 -0700)]
fix: update example.c to latest API

4 years agoMerge branch 'b470c54b-7fe1-4771-a64e-963fcf34bc13' into 'master'
Matthew Fernandez [Sat, 4 Jul 2020 16:52:40 +0000 (16:52 +0000)]
Merge branch 'b470c54b-7fe1-4771-a64e-963fcf34bc13' into 'master'

avoid 'transparent is not a known color' warning

Closes #1449

See merge request graphviz/graphviz!1447

4 years agoMerge branch 'bd40bdf5-3761-4ae6-b1ef-f7904ff251ba' into 'master'
Matthew Fernandez [Fri, 3 Jul 2020 17:20:22 +0000 (17:20 +0000)]
Merge branch 'bd40bdf5-3761-4ae6-b1ef-f7904ff251ba' into 'master'

remove some -Wcast-qual compiler warnings

See merge request graphviz/graphviz!1446

4 years agoMerge branch 'dbdb31b0-dc0d-4b04-a62e-767d0fa0868e' into 'master'
Matthew Fernandez [Wed, 1 Jul 2020 00:38:52 +0000 (00:38 +0000)]
Merge branch 'dbdb31b0-dc0d-4b04-a62e-767d0fa0868e' into 'master'

fix memory leak in find_all_cycles()

See merge request graphviz/graphviz!1439

4 years agoMerge branch '2B9AE17E-6066-4038-B391-5C51411ED77D' into 'master'
Matthew Fernandez [Wed, 1 Jul 2020 00:03:40 +0000 (00:03 +0000)]
Merge branch '2B9AE17E-6066-4038-B391-5C51411ED77D' into 'master'

remove index.html fragment

See merge request graphviz/graphviz!1443

4 years agoMerge branch '5ACFD17E-A8C7-4FE9-80D0-38DF90EA199D' into 'master'
Matthew Fernandez [Tue, 30 Jun 2020 14:06:49 +0000 (14:06 +0000)]
Merge branch '5ACFD17E-A8C7-4FE9-80D0-38DF90EA199D' into 'master'

fix: remove generated patchwork.1.pdf during distclean

See merge request graphviz/graphviz!1437

4 years agoMerge branch 'return-to-2.45-dev' into 'master'
Magnus Jacobsson [Mon, 29 Jun 2020 12:28:56 +0000 (12:28 +0000)]
Merge branch 'return-to-2.45-dev' into 'master'

Move back to 2.45 development series

See merge request graphviz/graphviz!1449

4 years agoMove back to 2.45 development series
Magnus Jacobsson [Mon, 29 Jun 2020 09:29:47 +0000 (11:29 +0200)]
Move back to 2.45 development series

4 years agoMerge branch 'stable-release-2.44.1' into 'master' 2.44.1
Magnus Jacobsson [Mon, 29 Jun 2020 08:46:02 +0000 (08:46 +0000)]
Merge branch 'stable-release-2.44.1' into 'master'

Stable Release 2.44.1

See merge request graphviz/graphviz!1448

4 years agoStable Release 2.44.1
Magnus Jacobsson [Mon, 29 Jun 2020 07:59:34 +0000 (09:59 +0200)]
Stable Release 2.44.1

4 years agoMerge branch 'cmake-graphviz-version-from-autogen' into 'master'
Magnus Jacobsson [Mon, 29 Jun 2020 07:02:02 +0000 (07:02 +0000)]
Merge branch 'cmake-graphviz-version-from-autogen' into 'master'

CMake Graphviz version from autogen

See merge request graphviz/graphviz!1440

4 years agoGenerate build date in UTC also in CMake
Magnus Jacobsson [Mon, 29 Jun 2020 06:06:44 +0000 (08:06 +0200)]
Generate build date in UTC also in CMake

This is what autogen.sh does.

4 years agoRemove obsolete CMakeLists.txt update from DEVELOPERS.md
Magnus Jacobsson [Thu, 25 Jun 2020 10:37:05 +0000 (12:37 +0200)]
Remove obsolete CMakeLists.txt update from DEVELOPERS.md

4 years agoAllow build date to be overridden by cmake -DDATE=
Magnus Jacobsson [Wed, 24 Jun 2020 12:45:42 +0000 (14:45 +0200)]
Allow build date to be overridden by cmake -DDATE=

4 years agoAdd generation of DATE file containing build date
Magnus Jacobsson [Wed, 24 Jun 2020 12:40:25 +0000 (14:40 +0200)]
Add generation of DATE file containing build date

4 years agoChange to use patch version in the Windows installer
Magnus Jacobsson [Wed, 24 Jun 2020 11:07:14 +0000 (13:07 +0200)]
Change to use patch version in the Windows installer

This changes the version in the Graphviz installer .exe produced by
CMake to use the patch version number instead of the build
date. Still, if the patch version is "$GRAPHVIZ_VERSION_DATE", the
patch version will be set to the build date. This conforms with how
the Linux packages are created.

This change affects the filename of the installer, the version
presented to the user in the installer GUI, the installation path and
the version presented by the running software.

4 years agoAllow version to be overridden by cmake -DVERSION=
Magnus Jacobsson [Tue, 23 Jun 2020 14:46:58 +0000 (16:46 +0200)]
Allow version to be overridden by cmake -DVERSION=

Example:

cmake -G "Visual Studio 16 2019" -A x64 -DGRAPHVIZ_VERSION_STRING="47.11.20200623.1234" ..

4 years agoMake CMake get Graphviz version from autogen.sh by parsing it
Magnus Jacobsson [Thu, 18 Jun 2020 11:08:04 +0000 (13:08 +0200)]
Make CMake get Graphviz version from autogen.sh by parsing it

This will make autotools and CMake builds have a single source of
truth for the Graphviz version.

First, the major, minor and patch versions are retrieved. If the patch
version is "$GRAPHVIZ_VERSION_DATE", the patch version is set to the
committer date of the latest commit. This effectively repeals part of
the intention of 266ff5ee80b2d91231907e90ec650154f5225aa5: "Don't
encode build date stamp in it to be able to create reproducable
builds".

4 years agoMerge branch 'gitlab-ci-windows' into 'master'
Magnus Jacobsson [Mon, 29 Jun 2020 04:24:49 +0000 (04:24 +0000)]
Merge branch 'gitlab-ci-windows' into 'master'

Windows builds in the Gitlab CI/CD pipeline

See merge request graphviz/graphviz!1438

4 years agoavoid 'transparent is not a known color' warning
Matthew Fernandez [Mon, 29 Jun 2020 00:08:07 +0000 (17:08 -0700)]
avoid 'transparent is not a known color' warning

When using the SVG color scheme, Graphviz would emit a spurious warning. This
change is Steve Roush's solution. Closes #1449.

4 years agoremove some -Wcast-qual compiler warnings
Matthew Fernandez [Sat, 27 Jun 2020 21:24:58 +0000 (14:24 -0700)]
remove some -Wcast-qual compiler warnings

4 years agoMake Windows binaries contain version and platform in filename
Magnus Jacobsson [Thu, 25 Jun 2020 17:27:21 +0000 (19:27 +0200)]
Make Windows binaries contain version and platform in filename

4 years agoRemove Appveyor stuff from DEVELOPERS.md
Magnus Jacobsson [Thu, 25 Jun 2020 10:32:34 +0000 (12:32 +0200)]
Remove Appveyor stuff from DEVELOPERS.md

4 years agoFix linting errors in DEVELOPERS.md
Magnus Jacobsson [Thu, 25 Jun 2020 10:18:26 +0000 (12:18 +0200)]
Fix linting errors in DEVELOPERS.md

4 years agoDon't show progress from choco installs
Magnus Jacobsson [Wed, 24 Jun 2020 19:30:17 +0000 (21:30 +0200)]
Don't show progress from choco installs

4 years agoAdd deploy of Windows binaries to www2.graphviz.org
Magnus Jacobsson [Mon, 22 Jun 2020 14:50:41 +0000 (16:50 +0200)]
Add deploy of Windows binaries to www2.graphviz.org

Final commit that resolves
https://gitlab.com/graphviz/graphviz/-/issues/1713.

4 years agoConvert lab_gamut data to plain array (was array of struct)
Magnus Jacobsson [Mon, 22 Jun 2020 13:56:47 +0000 (15:56 +0200)]
Convert lab_gamut data to plain array (was array of struct)

4 years agoDisable code analysis for lab_gamut
Magnus Jacobsson [Mon, 22 Jun 2020 13:32:12 +0000 (15:32 +0200)]
Disable code analysis for lab_gamut

4 years agoAdd Windows build jobs to GitLab pipeline
Magnus Jacobsson [Tue, 16 Jun 2020 21:02:44 +0000 (23:02 +0200)]
Add Windows build jobs to GitLab pipeline

4 years agoRetarget to Visual Studio 2019 and toolset v142
Magnus Jacobsson [Mon, 15 Jun 2020 14:23:43 +0000 (16:23 +0200)]
Retarget to Visual Studio 2019 and toolset v142

4 years agoMerge branch 'e467ae7f-137b-4133-a0f7-868171fc13db' into 'master'
Matthew Fernandez [Sat, 27 Jun 2020 00:48:06 +0000 (00:48 +0000)]
Merge branch 'e467ae7f-137b-4133-a0f7-868171fc13db' into 'master'

some lib/gvc simplification

See merge request graphviz/graphviz!1435

4 years agoMerge branch 'dac2636e-2144-4c57-8e9c-33fc072b6642' into 'master'
Matthew Fernandez [Sat, 27 Jun 2020 00:02:24 +0000 (00:02 +0000)]
Merge branch 'dac2636e-2144-4c57-8e9c-33fc072b6642' into 'master'

remove legacy lib/agraph

Closes #1549

See merge request graphviz/graphviz!1434

4 years agoremove index.html fragment
Matthew Fernandez [Fri, 26 Jun 2020 00:57:04 +0000 (17:57 -0700)]
remove index.html fragment

4 years agoMerge branch 'master' of ssh://gitlab.com/graphviz/graphviz into 0B0BFA8E-A762-45A4...
Matthew Fernandez [Fri, 26 Jun 2020 00:52:24 +0000 (17:52 -0700)]
Merge branch 'master' of ssh://gitlab.com/graphviz/graphviz into 0B0BFA8E-A762-45A4-8F56-030AD90FA42E

4 years agoMerge branch '349F18B3-F9F4-487E-BED4-E534CF4FCF59' into 'master'
Matthew Fernandez [Fri, 26 Jun 2020 00:07:30 +0000 (00:07 +0000)]
Merge branch '349F18B3-F9F4-487E-BED4-E534CF4FCF59' into 'master'

lib/ast cleanup

See merge request graphviz/graphviz!1433

4 years agofix memory leak in vector allocation
Matthew Fernandez [Thu, 25 Jun 2020 02:01:05 +0000 (19:01 -0700)]
fix memory leak in vector allocation

Address Sanitizer detected a few instances of the following:

  Direct leak of 168 byte(s) in 7 object(s) allocated from:
    #0 0x7f4bc2724330 in __interceptor_malloc (/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
    #1 0x7f4bc24b1ea3 in vec_new /tmp/tmp.m68Z0dFAYs/graphviz/lib/common/routespl.c:918
    #2 0x7f4bc24b291a in find_all_cycles /tmp/tmp.m68Z0dFAYs/graphviz/lib/common/routespl.c:1073
    #3 0x7f4bc24b2b64 in get_cycle_centroid /tmp/tmp.m68Z0dFAYs/graphviz/lib/common/routespl.c:1121
    #4 0x7f4bc24b3c5c in makeStraightEdges /tmp/tmp.m68Z0dFAYs/graphviz/lib/common/routespl.c:1233
    #5 0x7f4bc24b35f8 in makeStraightEdge /tmp/tmp.m68Z0dFAYs/graphviz/lib/common/routespl.c:1203
    #6 0x7f4bbdf28b52 in _spline_edges /tmp/tmp.m68Z0dFAYs/graphviz/lib/neatogen/neatosplines.c:659
    #7 0x7f4bbdf29240 in splineEdges /tmp/tmp.m68Z0dFAYs/graphviz/lib/neatogen/neatosplines.c:736
    #8 0x7f4bbdf29310 in spline_edges1 /tmp/tmp.m68Z0dFAYs/graphviz/lib/neatogen/neatosplines.c:749
    #9 0x7f4bbdf293be in spline_edges0 /tmp/tmp.m68Z0dFAYs/graphviz/lib/neatogen/neatosplines.c:779
    #10 0x7f4bbdf29bcb in spline_edges /tmp/tmp.m68Z0dFAYs/graphviz/lib/neatogen/neatosplines.c:817
    #11 0x7f4bbdf14ea6 in neato_layout /tmp/tmp.m68Z0dFAYs/graphviz/lib/neatogen/neatoinit.c:1489
    #12 0x7f4bc242b6fc in gvLayoutJobs /tmp/tmp.m68Z0dFAYs/graphviz/lib/gvc/gvlayout.c:85
    #13 0x559fcd474960 in main /tmp/tmp.m68Z0dFAYs/graphviz/cmd/dot/dot.c:132
    #14 0x7f4bc21d709a in __libc_start_main ../csu/libc-start.c:308

find_all_cycles() was calling vec_delete() on the temporary vector it allocated,
but it did not take into account that the nested vectors were not freed by
vec_delete(). This change moves the open coded clean up logic from
get_cycle_centroid() into vec_delete() to fix this and make it less likely that
this is missed in future.

This was initially encountered while investigating #1554.

4 years agorelocate vec_get() so we can call it earlier
Matthew Fernandez [Thu, 25 Jun 2020 02:05:54 +0000 (19:05 -0700)]
relocate vec_get() so we can call it earlier

4 years agomark the parameter to vec_length() as const
Matthew Fernandez [Thu, 25 Jun 2020 01:59:34 +0000 (18:59 -0700)]
mark the parameter to vec_length() as const

4 years agorelocate vec_length() so we can call it earlier
Matthew Fernandez [Thu, 25 Jun 2020 01:58:50 +0000 (18:58 -0700)]
relocate vec_length() so we can call it earlier

4 years agoMerge branch 'F2AA1D9F-EB82-4EB5-8B26-C5765A343AE9' into 'master'
Matthew Fernandez [Tue, 23 Jun 2020 13:44:33 +0000 (13:44 +0000)]
Merge branch 'F2AA1D9F-EB82-4EB5-8B26-C5765A343AE9' into 'master'

exit on allocation failure in lib/common/memory.c wrappers (attempt 2)

See merge request graphviz/graphviz!1436

4 years agofix: remove generated patchwork.1.pdf during distclean
Matthew Fernandez [Tue, 23 Jun 2020 00:12:45 +0000 (17:12 -0700)]
fix: remove generated patchwork.1.pdf during distclean

As discussed on #1734, this omission looks to have been a typo.

4 years agoswap malloc(n*m) pattern for calloc(n,m)
Matthew Fernandez [Tue, 16 Jun 2020 01:04:42 +0000 (18:04 -0700)]
swap malloc(n*m) pattern for calloc(n,m)

This avoids some potential integer overflows.

4 years agoremove some now-redundant error handling from a call to N_NEW
Matthew Fernandez [Tue, 16 Jun 2020 00:57:12 +0000 (17:57 -0700)]
remove some now-redundant error handling from a call to N_NEW

The N_NEW wrapper now exits on allocation failure, rendering this code path
redundant.

4 years agoremove some now-redundant error handling following a call to NEW()
Matthew Fernandez [Tue, 16 Jun 2020 00:05:21 +0000 (17:05 -0700)]
remove some now-redundant error handling following a call to NEW()

Allocation failures in NEW() now cause an error message and exit, so this code
path was redundant.

4 years agoremove allocation failure check in setPrefix
Matthew Fernandez [Mon, 15 Jun 2020 23:23:24 +0000 (16:23 -0700)]
remove allocation failure check in setPrefix

The function being called here, gmalloc, now exits on allocation failure. None
of setPrefix's callers can tolerate failure anyway, so this error handling seems
to have been incomplete previously.

4 years agouse calloc instead of malloc;memset in zmalloc()
Matthew Fernandez [Tue, 2 Jun 2020 03:44:34 +0000 (20:44 -0700)]
use calloc instead of malloc;memset in zmalloc()

This is more efficient for larger allocations, where the allocator can just
provide a zeroed page from the operating system.

4 years agoalso provide a calloc wrapper in lib/common
Matthew Fernandez [Tue, 2 Jun 2020 03:48:54 +0000 (20:48 -0700)]
also provide a calloc wrapper in lib/common

4 years agoremove commented out gmalloc variants
Matthew Fernandez [Tue, 2 Jun 2020 03:41:26 +0000 (20:41 -0700)]
remove commented out gmalloc variants

4 years agoexit on failure of any of the lib/common malloc wrappers
Matthew Fernandez [Tue, 2 Jun 2020 03:27:18 +0000 (20:27 -0700)]
exit on failure of any of the lib/common malloc wrappers

Previously, when these wrappers exhausted memory they would return a null
pointer leading to follow on memory corruption and debugging confusion. It seems
simpler to just stop when we run out of memory as we have no reasonable recovery
path at this time.

4 years agorefactor a RALLOC call that can tolerate failure to realloc
Matthew Fernandez [Tue, 16 Jun 2020 00:55:46 +0000 (17:55 -0700)]
refactor a RALLOC call that can tolerate failure to realloc

We are about to make the RALLOC wrapper exit on allocation failure, so this
preserves the semantics of this call which handles allocation failure locally.

4 years agorefactor calls to NEW that can tolerate failure into calloc
Matthew Fernandez [Tue, 16 Jun 2020 00:06:27 +0000 (17:06 -0700)]
refactor calls to NEW that can tolerate failure into calloc

We are about to make the NEW wrapper exit on allocation failure, so this
preserves the existing semantics of allowing these calls to handle allocation
failure locally.

4 years agorefactor any N_GNEW calls that can tolerate allocation failure to calloc
Matthew Fernandez [Mon, 15 Jun 2020 23:43:30 +0000 (16:43 -0700)]
refactor any N_GNEW calls that can tolerate allocation failure to calloc

We are about to change the N_GNEW wrapper to exit on failure, so this preserves
the semantics of allowing these few locations to handle allocation failure
locally.

4 years agorefactor a GNEW call that can tolerate failure into a direct malloc
Matthew Fernandez [Mon, 15 Jun 2020 23:16:36 +0000 (16:16 -0700)]
refactor a GNEW call that can tolerate failure into a direct malloc

We are about to make the GNEW wrapper exit on allocation failure, so this
preserves the existing semantics of allocation failure being non-fatal to this
call. This is the only GNEW call I can see that can tolerate allocation failure.

4 years agoremove one unused N_NEW wrapper
Matthew Fernandez [Tue, 16 Jun 2020 01:05:23 +0000 (18:05 -0700)]
remove one unused N_NEW wrapper

4 years agoremove incorrect commented out use of NEW()
Matthew Fernandez [Tue, 16 Jun 2020 00:02:00 +0000 (17:02 -0700)]
remove incorrect commented out use of NEW()

This macro takes a type as its argument, not a size. This call would have
resulted in an incorrect allocation of sizeof(size_t) bytes.

4 years agoRevert "Merge branch 'master' of ssh://gitlab.com/graphviz/graphviz into 7ca60983...
Matthew Fernandez [Mon, 22 Jun 2020 14:58:52 +0000 (07:58 -0700)]
Revert "Merge branch 'master' of ssh://gitlab.com/graphviz/graphviz into 7ca60983-b10d-4afe-88d5-d275587aafb9"

This reverts commit c9941ccf24cf19e6ac73ee1f6407304949acaa85, reversing
changes made to af4fb9c4039b2d1aecc303ff2b6355b933397c57. CI failed on Windows.

4 years agoMerge branch 'master' of ssh://gitlab.com/graphviz/graphviz into 7ca60983-b10d-4afe...
Matthew Fernandez [Mon, 22 Jun 2020 14:31:16 +0000 (07:31 -0700)]
Merge branch 'master' of ssh://gitlab.com/graphviz/graphviz into 7ca60983-b10d-4afe-88d5-d275587aafb9

4 years agoMerge branch 'fix-sh-syntax-error-in-debian-rules' into 'master'
Magnus Jacobsson [Sun, 21 Jun 2020 08:24:14 +0000 (08:24 +0000)]
Merge branch 'fix-sh-syntax-error-in-debian-rules' into 'master'

Fix "Python language bindings library for Ubuntu does not contain any Python code or binaries"

Closes #1737 and #1735

See merge request graphviz/graphviz!1426

4 years agoremove a level of pointer indirection and add a const in gvplugin_graph
Matthew Fernandez [Sat, 20 Jun 2020 20:25:45 +0000 (13:25 -0700)]
remove a level of pointer indirection and add a const in gvplugin_graph

4 years agoremove some pointer indirection and add a const in gvPluginList
Matthew Fernandez [Sat, 20 Jun 2020 20:20:32 +0000 (13:20 -0700)]
remove some pointer indirection and add a const in gvPluginList

4 years agoremove unnecessary pointer indirection and add const in gvplugin_list
Matthew Fernandez [Sat, 20 Jun 2020 20:17:24 +0000 (13:17 -0700)]
remove unnecessary pointer indirection and add const in gvplugin_list

4 years agoemove an unnecessary level of pointer indirection in gvplugin_load
Matthew Fernandez [Sat, 20 Jun 2020 20:12:21 +0000 (13:12 -0700)]
emove an unnecessary level of pointer indirection in gvplugin_load

4 years agoremove an unnecessary level of pointer indirection in gvplugin_activate
Matthew Fernandez [Sat, 20 Jun 2020 20:03:17 +0000 (13:03 -0700)]
remove an unnecessary level of pointer indirection in gvplugin_activate

4 years agoupdate #include path in demo C code
Matthew Fernandez [Sat, 20 Jun 2020 20:00:29 +0000 (13:00 -0700)]
update #include path in demo C code

These headers are now installed under graphviz/ within the include directory.

4 years agoremove lib/agraph
Matthew Fernandez [Sat, 20 Jun 2020 17:24:42 +0000 (10:24 -0700)]
remove lib/agraph

This was previously deprecated in favor of lib/cgraph. Closes #1549.

4 years agoupdate some legacy comments, libagraph->libcgraph
Matthew Fernandez [Sat, 20 Jun 2020 17:22:47 +0000 (10:22 -0700)]
update some legacy comments, libagraph->libcgraph

4 years agoremove a legacy reference to libagraph
Matthew Fernandez [Sat, 20 Jun 2020 17:22:35 +0000 (10:22 -0700)]
remove a legacy reference to libagraph

4 years agoremove libgraph, libagraph references in gxl2gv's manpage
Matthew Fernandez [Sat, 20 Jun 2020 17:21:25 +0000 (10:21 -0700)]
remove libgraph, libagraph references in gxl2gv's manpage

The manpages for libgraph and libagraph are not shipped to end users.

4 years agoremove a comment reference to legacy libgraph, libagraph
Matthew Fernandez [Sat, 20 Jun 2020 17:19:57 +0000 (10:19 -0700)]
remove a comment reference to legacy libgraph, libagraph

4 years agoMerge branch 'master' of ssh://gitlab.com/graphviz/graphviz into ab44ecec-2c4c-4dc9...
Matthew Fernandez [Sat, 20 Jun 2020 16:46:59 +0000 (09:46 -0700)]
Merge branch 'master' of ssh://gitlab.com/graphviz/graphviz into ab44ecec-2c4c-4dc9-a57b-5e4cba52e56c

4 years agoremove unused align.h
Matthew Fernandez [Sat, 20 Jun 2020 01:58:21 +0000 (18:58 -0700)]
remove unused align.h

4 years agoremove unused #includes of align.h
Matthew Fernandez [Sat, 20 Jun 2020 02:00:21 +0000 (19:00 -0700)]
remove unused #includes of align.h

4 years agoremove unused strsubmatch function
Matthew Fernandez [Sat, 6 Jun 2020 00:10:09 +0000 (17:10 -0700)]
remove unused strsubmatch function

This also removes two compiler warnings.

4 years agoremove unused pathinclude function
Matthew Fernandez [Sat, 6 Jun 2020 00:08:50 +0000 (17:08 -0700)]
remove unused pathinclude function

This also removes a compiler warning.

4 years agoremove unused fmtnesq function
Matthew Fernandez [Sat, 6 Jun 2020 00:07:17 +0000 (17:07 -0700)]
remove unused fmtnesq function

This also removes a compiler warning.

4 years agoremove lab_gamut manpage
Matthew Fernandez [Fri, 19 Jun 2020 00:30:30 +0000 (17:30 -0700)]
remove lab_gamut manpage

The header this manpage was describing was not installed for users.

4 years agostop shipping a PDF of the lab_gamut manpage
Matthew Fernandez [Fri, 19 Jun 2020 00:14:54 +0000 (17:14 -0700)]
stop shipping a PDF of the lab_gamut manpage

The header for this library was not being installed and we do not want users
directly accessing this data, so the PDF documentation was not useful to them.

4 years agoremove commented out line
Matthew Fernandez [Fri, 19 Jun 2020 00:12:08 +0000 (17:12 -0700)]
remove commented out line

4 years agoMerge branch '461036BD-675E-4AA6-85E2-4381BC03CC99' into 'master'
Matthew Fernandez [Sat, 20 Jun 2020 00:27:50 +0000 (00:27 +0000)]
Merge branch '461036BD-675E-4AA6-85E2-4381BC03CC99' into 'master'

fix building of blank PDFs for manpages

Closes #1734

See merge request graphviz/graphviz!1428

4 years agoswap malloc(n*m) pattern for calloc(n,m)
Matthew Fernandez [Tue, 16 Jun 2020 01:04:42 +0000 (18:04 -0700)]
swap malloc(n*m) pattern for calloc(n,m)

This avoids some potential integer overflows.

4 years agoremove some now-redundant error handling from a call to N_NEW
Matthew Fernandez [Tue, 16 Jun 2020 00:57:12 +0000 (17:57 -0700)]
remove some now-redundant error handling from a call to N_NEW

The N_NEW wrapper now exits on allocation failure, rendering this code path
redundant.

4 years agoremove some now-redundant error handling following a call to NEW()
Matthew Fernandez [Tue, 16 Jun 2020 00:05:21 +0000 (17:05 -0700)]
remove some now-redundant error handling following a call to NEW()

Allocation failures in NEW() now cause an error message and exit, so this code
path was redundant.

4 years agoremove allocation failure check in setPrefix
Matthew Fernandez [Mon, 15 Jun 2020 23:23:24 +0000 (16:23 -0700)]
remove allocation failure check in setPrefix

The function being called here, gmalloc, now exits on allocation failure. None
of setPrefix's callers can tolerate failure anyway, so this error handling seems
to have been incomplete previously.

4 years agouse calloc instead of malloc;memset in zmalloc()
Matthew Fernandez [Tue, 2 Jun 2020 03:44:34 +0000 (20:44 -0700)]
use calloc instead of malloc;memset in zmalloc()

This is more efficient for larger allocations, where the allocator can just
provide a zeroed page from the operating system.

4 years agoalso provide a calloc wrapper in lib/common
Matthew Fernandez [Tue, 2 Jun 2020 03:48:54 +0000 (20:48 -0700)]
also provide a calloc wrapper in lib/common

4 years agoremove commented out gmalloc variants
Matthew Fernandez [Tue, 2 Jun 2020 03:41:26 +0000 (20:41 -0700)]
remove commented out gmalloc variants

4 years agoexit on failure of any of the lib/common malloc wrappers
Matthew Fernandez [Tue, 2 Jun 2020 03:27:18 +0000 (20:27 -0700)]
exit on failure of any of the lib/common malloc wrappers

Previously, when these wrappers exhausted memory they would return a null
pointer leading to follow on memory corruption and debugging confusion. It seems
simpler to just stop when we run out of memory as we have no reasonable recovery
path at this time.

4 years agorefactor a RALLOC call that can tolerate failure to realloc
Matthew Fernandez [Tue, 16 Jun 2020 00:55:46 +0000 (17:55 -0700)]
refactor a RALLOC call that can tolerate failure to realloc

We are about to make the RALLOC wrapper exit on allocation failure, so this
preserves the semantics of this call which handles allocation failure locally.

4 years agorefactor calls to NEW that can tolerate failure into calloc
Matthew Fernandez [Tue, 16 Jun 2020 00:06:27 +0000 (17:06 -0700)]
refactor calls to NEW that can tolerate failure into calloc

We are about to make the NEW wrapper exit on allocation failure, so this
preserves the existing semantics of allowing these calls to handle allocation
failure locally.

4 years agorefactor any N_GNEW calls that can tolerate allocation failure to calloc
Matthew Fernandez [Mon, 15 Jun 2020 23:43:30 +0000 (16:43 -0700)]
refactor any N_GNEW calls that can tolerate allocation failure to calloc

We are about to change the N_GNEW wrapper to exit on failure, so this preserves
the semantics of allowing these few locations to handle allocation failure
locally.

4 years agorefactor a GNEW call that can tolerate failure into a direct malloc
Matthew Fernandez [Mon, 15 Jun 2020 23:16:36 +0000 (16:16 -0700)]
refactor a GNEW call that can tolerate failure into a direct malloc

We are about to make the GNEW wrapper exit on allocation failure, so this
preserves the existing semantics of allocation failure being non-fatal to this
call. This is the only GNEW call I can see that can tolerate allocation failure.

4 years agoremove one unused N_NEW wrapper
Matthew Fernandez [Tue, 16 Jun 2020 01:05:23 +0000 (18:05 -0700)]
remove one unused N_NEW wrapper

4 years agoMerge branch '7fce6ce6-df5b-4bc3-938e-28db4c30689a' into 'master'
Matthew Fernandez [Tue, 16 Jun 2020 00:25:18 +0000 (00:25 +0000)]
Merge branch '7fce6ce6-df5b-4bc3-938e-28db4c30689a' into 'master'

remove unused agutil

See merge request graphviz/graphviz!1425

4 years agoremove incorrect commented out use of NEW()
Matthew Fernandez [Tue, 16 Jun 2020 00:02:00 +0000 (17:02 -0700)]
remove incorrect commented out use of NEW()

This macro takes a type as its argument, not a size. This call would have
resulted in an incorrect allocation of sizeof(size_t) bytes.

4 years agoMerge branch 'master' of ssh://gitlab.com/graphviz/graphviz into c7194847-d161-451c...
Matthew Fernandez [Mon, 15 Jun 2020 13:59:55 +0000 (06:59 -0700)]
Merge branch 'master' of ssh://gitlab.com/graphviz/graphviz into c7194847-d161-451c-9644-72a4c19f8a1b