sxemacs
12 years agoCoverity fixes, etc from Nelson
Steve Youngs [Thu, 23 Feb 2012 00:06:52 +0000 (10:06 +1000)]
Coverity fixes, etc from Nelson

* merges:
  Coverity: TOCTOU: CID 392
  Fix build...
  Coverity: TOCTOU: CID 391
  Coverity: TOCTOU: CID 390
  Coverity: TOCTOU: CID 387
  Better stack-protector behavior in FreeBSD
  Remove forceful disable of ase in Mac OS X
  Coverity CID 52: Forward null
  Slightly better basic type detection.

12 years agoCoverity: TOCTOU: CID 392
Nelson Ferreira [Wed, 22 Feb 2012 23:38:13 +0000 (18:38 -0500)]
Coverity: TOCTOU: CID 392

* src/editfns.c (Ftemp_directory): First mkdir then properly
handle errors for the home directory temp directory creation.
Also attempt to create .created_by_sxemacs in case the dir exists.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoFix build...
Nelson Ferreira [Wed, 22 Feb 2012 23:36:01 +0000 (18:36 -0500)]
Fix build...

* src/ui/X11/xgccache.c (gc_cache_lookup): NULL not null

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: TOCTOU: CID 391
Nelson Ferreira [Wed, 22 Feb 2012 23:33:17 +0000 (18:33 -0500)]
Coverity: TOCTOU: CID 391

* lib-src/ootags.c (process_file): Check for regular file after
open, even if it fails, to improve diagnostic message.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: TOCTOU: CID 390
Nelson Ferreira [Wed, 22 Feb 2012 23:29:43 +0000 (18:29 -0500)]
Coverity: TOCTOU: CID 390

* lib-src/movemail.c (main): No need to check access to outname,
since open will fail and we are not giving any better diagnosis.

* lib-src/movemail.c (main): Ditto for inname.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: TOCTOU: CID 387
Nelson Ferreira [Wed, 22 Feb 2012 23:23:46 +0000 (18:23 -0500)]
Coverity: TOCTOU: CID 387

* lib-src/make-path.c (touchy_mkdir): Try to avoid check/create
race condition by first attempting to create, then check any
error. If it is EEXISTS or directory already exists, then all
good.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge branch 'njsf-cov' into for-steve
Nelson Ferreira [Wed, 22 Feb 2012 22:49:47 +0000 (17:49 -0500)]
Merge branch 'njsf-cov' into for-steve

12 years agoBetter stack-protector behavior in FreeBSD
Nelson Ferreira [Wed, 22 Feb 2012 22:49:38 +0000 (17:49 -0500)]
Better stack-protector behavior in FreeBSD

* m4/sxe-compiler.m4 (SXE_STACK_FLAGS): Forcefully disable stack-protector on freebsd and output warning message..

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoRemove forceful disable of ase in Mac OS X
Nelson Ferreira [Wed, 22 Feb 2012 22:48:22 +0000 (17:48 -0500)]
Remove forceful disable of ase in Mac OS X

* configure.ac: Remove conditional on opsys != darwin for ase
inclusion. Make conditional on ase components depend on having
dynamic or static ase, not on OS...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge remote-tracking branch 'origin/master' into for-steve
Nelson Ferreira [Wed, 22 Feb 2012 21:52:45 +0000 (16:52 -0500)]
Merge remote-tracking branch 'origin/master' into for-steve

12 years agoaRts removal from Horst
Steve Youngs [Wed, 22 Feb 2012 03:49:44 +0000 (13:49 +1000)]
aRts removal from Horst

* merges:
  [aRts removal] Exorcizo te, omnis spiritus immunde, in nomine Dei Patris omnipotentis
  ex{|or}cise the monstrosity that is aRts once and for all

12 years ago[aRts removal] Exorcizo te, omnis spiritus immunde, in nomine Dei Patris omnipotentis
Horst G. Burkhardt III [Wed, 22 Feb 2012 02:55:21 +0000 (13:55 +1100)]
[aRts removal] Exorcizo te, omnis spiritus immunde, in nomine Dei Patris omnipotentis

Signed-off-by: Horst G. Burkhardt III <horst@sxemacs.org>
12 years agoex{|or}cise the monstrosity that is aRts once and for all
Horst G. Burkhardt III [Wed, 22 Feb 2012 01:09:40 +0000 (12:09 +1100)]
ex{|or}cise the monstrosity that is aRts once and for all

Signed-off-by: Horst G. Burkhardt III <horst@sxemacs.org>
12 years agoPROBLEMS update re SSP on FreeBSD from Horst
Steve Youngs [Sat, 18 Feb 2012 15:01:25 +0000 (01:01 +1000)]
PROBLEMS update re SSP on FreeBSD from Horst

* merges:
  added warning against SSP on FreeBSD to PROBLEMS file

12 years agoadded warning against SSP on FreeBSD to PROBLEMS file
Horst G. Burkhardt III [Sat, 18 Feb 2012 00:48:24 +0000 (11:48 +1100)]
added warning against SSP on FreeBSD to PROBLEMS file

Signed-off-by: Horst G. Burkhardt III <horst@sxemacs.org>
12 years agoCoverity CID 52: Forward null
Nelson Ferreira [Sat, 11 Feb 2012 02:07:57 +0000 (21:07 -0500)]
Coverity CID 52: Forward null

* src/ui/X11/xgccache.c (gc_cache_lookup): Only dereference
cell/cache->head if not NULL

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge remote-tracking branch 'origin/master' into for-steve
Nelson Ferreira [Wed, 1 Feb 2012 16:15:57 +0000 (11:15 -0500)]
Merge remote-tracking branch 'origin/master' into for-steve

12 years agoMerge branch 'openindie'
Steve Youngs [Tue, 31 Jan 2012 02:34:08 +0000 (12:34 +1000)]
Merge branch 'openindie'

* openindie:
  Fix build on OpenIndiana

12 years agoFix build on OpenIndiana
Steve Youngs [Tue, 31 Jan 2012 02:31:43 +0000 (12:31 +1000)]
Fix build on OpenIndiana

"Fix" is probably too strong a word here, it wasn't really broken in the
first place.  Just a tiny tweak to autogen.sh was the only "fix" needed
here.

This changeset also documents (in PROBLEMS) the missing deps needed to
build SXEmacs on OpenIndiana.

* autogen.sh: Only add the xpg4/bin directory to the $PATH if this
isn't OpenIndiana.

* PROBLEMS: Document build quirks for OpenIndiana.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoThe Great Whitespace Cleanup
Steve Youngs [Sat, 28 Jan 2012 08:01:03 +0000 (18:01 +1000)]
The Great Whitespace Cleanup

* whitespace: (24 commits)
  Whitespace cleanup in src [m-z]
  Whitespace cleanup in src [f-l]
  Whitespace cleanup in src [a-e]
  Whitespace cleanup in src/database
  Whitespace cleanup in src/ent
  Whitespace cleanup in src/events
  Whitespace cleanup in src/m
  Whitespace cleanup in src/media
  Whitespace cleanup in src/mem
  Whitespace cleanup in src/mule
  Whitespace cleanup in src/s
  Whitespace cleanup in src/ui
  Whitespace cleanup in src/ui/lwlib
  Whitespace cleanup in src/ui/X11
  Whitespace cleanup in src/ui/TTY
  Whitespace cleanup in tests
  Whitespace cleanup in modules
  Whitespace cleanup in m4
  Whitespace cleanup in lisp
  Whitespace cleanup in lib-src
  ...

12 years agoWhitespace cleanup in src [m-z]
Steve Youngs [Sat, 28 Jan 2012 07:41:50 +0000 (17:41 +1000)]
Whitespace cleanup in src [m-z]

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src [f-l]
Steve Youngs [Sat, 28 Jan 2012 07:27:57 +0000 (17:27 +1000)]
Whitespace cleanup in src [f-l]

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src [a-e]
Steve Youngs [Sat, 28 Jan 2012 07:22:02 +0000 (17:22 +1000)]
Whitespace cleanup in src [a-e]

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/database
Steve Youngs [Sat, 28 Jan 2012 07:08:21 +0000 (17:08 +1000)]
Whitespace cleanup in src/database

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/ent
Steve Youngs [Sat, 28 Jan 2012 07:06:29 +0000 (17:06 +1000)]
Whitespace cleanup in src/ent

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/events
Steve Youngs [Sat, 28 Jan 2012 06:59:05 +0000 (16:59 +1000)]
Whitespace cleanup in src/events

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/m
Steve Youngs [Sat, 28 Jan 2012 06:54:49 +0000 (16:54 +1000)]
Whitespace cleanup in src/m

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/media
Steve Youngs [Sat, 28 Jan 2012 06:47:35 +0000 (16:47 +1000)]
Whitespace cleanup in src/media

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/mem
Steve Youngs [Sat, 28 Jan 2012 06:41:08 +0000 (16:41 +1000)]
Whitespace cleanup in src/mem

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/mule
Steve Youngs [Sat, 28 Jan 2012 06:39:24 +0000 (16:39 +1000)]
Whitespace cleanup in src/mule

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/s
Steve Youngs [Sat, 28 Jan 2012 06:36:00 +0000 (16:36 +1000)]
Whitespace cleanup in src/s

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/ui
Steve Youngs [Sat, 28 Jan 2012 06:20:04 +0000 (16:20 +1000)]
Whitespace cleanup in src/ui

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/ui/lwlib
Steve Youngs [Sat, 28 Jan 2012 06:06:36 +0000 (16:06 +1000)]
Whitespace cleanup in src/ui/lwlib

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/ui/X11
Steve Youngs [Sat, 28 Jan 2012 06:01:24 +0000 (16:01 +1000)]
Whitespace cleanup in src/ui/X11

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in src/ui/TTY
Steve Youngs [Sat, 28 Jan 2012 05:45:45 +0000 (15:45 +1000)]
Whitespace cleanup in src/ui/TTY

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in tests
Steve Youngs [Sat, 28 Jan 2012 04:35:02 +0000 (14:35 +1000)]
Whitespace cleanup in tests

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in modules
Steve Youngs [Sat, 28 Jan 2012 04:28:25 +0000 (14:28 +1000)]
Whitespace cleanup in modules

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in m4
Steve Youngs [Sat, 28 Jan 2012 04:20:31 +0000 (14:20 +1000)]
Whitespace cleanup in m4

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in lisp
Steve Youngs [Sat, 28 Jan 2012 04:16:00 +0000 (14:16 +1000)]
Whitespace cleanup in lisp

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in lib-src
Steve Youngs [Sat, 28 Jan 2012 03:00:23 +0000 (13:00 +1000)]
Whitespace cleanup in lib-src

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in info
Steve Youngs [Sat, 28 Jan 2012 02:52:19 +0000 (12:52 +1000)]
Whitespace cleanup in info

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in etc
Steve Youngs [Sat, 28 Jan 2012 02:17:00 +0000 (12:17 +1000)]
Whitespace cleanup in etc

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in contrib
Steve Youngs [Sat, 28 Jan 2012 02:12:08 +0000 (12:12 +1000)]
Whitespace cleanup in contrib

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoWhitespace cleanup in toplevel dir
Steve Youngs [Sat, 28 Jan 2012 02:08:52 +0000 (12:08 +1000)]
Whitespace cleanup in toplevel dir

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoMerge branch 'merges'
Steve Youngs [Sat, 28 Jan 2012 00:15:37 +0000 (10:15 +1000)]
Merge branch 'merges'

* merges:
  Conditional definition of HAVE_ALLOCA to avoid meaningless HAVE_ALLOCA redefined warnings...
  Use the real pre-processor var: DEBUG_SXEMACS
  Coverity: Forward NULL: CID 607

12 years agoSlightly better basic type detection.
Nelson Ferreira [Sat, 28 Jan 2012 00:03:34 +0000 (19:03 -0500)]
Slightly better basic type detection.

* m4/sxe-libc.m4 (SXE_CHECK_BASIC_TYPES): Check for int64_t, intptr_t and sizeof float

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoConditional definition of HAVE_ALLOCA to avoid meaningless HAVE_ALLOCA redefined...
Nelson Ferreira [Fri, 27 Jan 2012 22:57:17 +0000 (17:57 -0500)]
Conditional definition of HAVE_ALLOCA to avoid meaningless HAVE_ALLOCA redefined warnings...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge branch 'for-steve' into njsf-cov
Nelson Ferreira [Fri, 27 Jan 2012 22:47:11 +0000 (17:47 -0500)]
Merge branch 'for-steve' into njsf-cov

12 years agoautogen.sh fix from Nelson
Steve Youngs [Wed, 25 Jan 2012 05:41:59 +0000 (15:41 +1000)]
autogen.sh fix from Nelson

* merges:
  Use head -n1 throughout
  Do not confuse GIT with git (or vice-versa)

12 years agoUse head -n1 throughout
Steve Youngs [Wed, 25 Jan 2012 05:40:11 +0000 (15:40 +1000)]
Use head -n1 throughout

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoDo not confuse GIT with git (or vice-versa)
Nelson Ferreira [Wed, 25 Jan 2012 04:45:59 +0000 (23:45 -0500)]
Do not confuse GIT with git (or vice-versa)

* autogen.sh: Make sure to only conside one line of git describe,
thus taking care of GIT (http://www.gnu.org/software/git/) being
installed instead of git (http://git-scm.com)

* configure.ac: ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge branch 'breathing'
Steve Youngs [Wed, 25 Jan 2012 00:21:36 +0000 (10:21 +1000)]
Merge branch 'breathing'

* breathing:
  Be consistent with setting and testing for breathing_space

12 years agoBe consistent with setting and testing for breathing_space
Steve Youngs [Wed, 25 Jan 2012 00:19:53 +0000 (10:19 +1000)]
Be consistent with setting and testing for breathing_space

* src/alloc.c (refill_memory_reserve): Test if breathing_space is
NULL, not zero.
Don't cast the malloc.

* src/alloc.c (garbage_collect_1): Increase breathing_space to,
erm, give us more breathing space.

* src/alloc.c (reinit_alloc_once_early): Set breathing_space to
NULL, not zero.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoBuild fix from Sebastian
Steve Youngs [Wed, 25 Jan 2012 00:02:25 +0000 (10:02 +1000)]
Build fix from Sebastian

* merges:
  Summary: fix, make sure ssp actually works before using it Keywords: bldchn diagnostics

12 years agoMerge branch 'bldchn/diag' into next
Sebastian Freundt [Tue, 24 Jan 2012 23:45:50 +0000 (23:45 +0000)]
Merge branch 'bldchn/diag' into next

* bldchn/diag:
  Summary: fix, make sure ssp actually works before using it Keywords: bldchn diagnostics

12 years agoSummary: fix, make sure ssp actually works before using it
Sebastian Freundt [Tue, 24 Jan 2012 23:45:43 +0000 (23:45 +0000)]
Summary: fix, make sure ssp actually works before using it
Keywords: bldchn diagnostics

This changeset hopefully resolves the issue Nelson had with ssp and
-fstack-protector.  Using crystal ball technology and rune readings
it turns out that gcc single-handedly adds -lssp as soon as
-fstack-protector is specified, regardless if it works or exists.

* m4/sxe-compiler.m4 (SXE_STACK_FLAGS): check if ssp works before adding
  -fstack-protector

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
12 years agoBuild fix from Rudi
Steve Youngs [Tue, 24 Jan 2012 12:20:47 +0000 (22:20 +1000)]
Build fix from Rudi

* merges:
  build fix, undeclared XmCR_UNKNOWN

12 years agobuild fix, undeclared XmCR_UNKNOWN
Ruediger Meier [Tue, 24 Jan 2012 11:19:57 +0000 (12:19 +0100)]
build fix, undeclared XmCR_UNKNOWN

This got accidentally broken in 613c762f.

12 years agoChanges from Nelson
Steve Youngs [Tue, 24 Jan 2012 02:33:31 +0000 (12:33 +1000)]
Changes from Nelson

* merges:
  Add a bit more breathing space to alloc
  Cosmetic break
  Empty merge
  compre on by default, no longer experimental

12 years agoAdd a bit more breathing space to alloc
Nelson Ferreira [Mon, 23 Jan 2012 23:53:36 +0000 (18:53 -0500)]
Add a bit more breathing space to alloc

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoBuild chain tweaks from Sebastian
Steve Youngs [Mon, 23 Jan 2012 22:22:26 +0000 (08:22 +1000)]
Build chain tweaks from Sebastian

* merges:
  Summary: minor, provide malldbg multiarg for MALLOC_PERTURB_ Keywords: bldchn diagnostics
  Summary: minor, add stack to --with-error-checking to turn SSP on Keywords: bldchn diagnostics

12 years agoMerge branch 'bldchn/diag' into next
Sebastian Freundt [Mon, 23 Jan 2012 21:45:37 +0000 (21:45 +0000)]
Merge branch 'bldchn/diag' into next

* bldchn/diag:
  Summary: minor, provide malldbg multiarg for MALLOC_PERTURB_ Keywords: bldchn diagnostics
  Summary: minor, add stack to --with-error-checking to turn SSP on Keywords: bldchn diagnostics

12 years agoSummary: minor, provide malldbg multiarg for MALLOC_PERTURB_
Sebastian Freundt [Mon, 23 Jan 2012 21:45:10 +0000 (21:45 +0000)]
Summary: minor, provide malldbg multiarg for MALLOC_PERTURB_
Keywords: bldchn diagnostics

This changeset introduces a multiarg item to the error-checking option
group, named `malldbg', that controls MALLOC_PERTURB_ and friends when
dumping.  This should fix the dumping procedure on MALLOC_PERTURB_
systems as our dumper reacts quite sensitively to that kind of system
hardening.

This changeset contains no additional intelligence to turn it off
automatically, if you see crashes during the dump phase conside
--with-error-checking=nomalldbg.

Whether or not we can persuade (read fix) the dumper code to react more
friendly to this kind of interference is subject to a different patch.

* configure.ac: add `malldbg' to the error-checking multiarg

* m4/sxe-compiler.m4: prepare EXTRA_BATCHENV in case malldbg is off

* src/Makefile.am: extend dumping environment to EXTRA_BATCHENV

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
12 years agoCosmetic break
Nelson Ferreira [Mon, 23 Jan 2012 19:03:28 +0000 (14:03 -0500)]
Cosmetic break

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoEmpty merge
Nelson Ferreira [Mon, 23 Jan 2012 19:01:57 +0000 (14:01 -0500)]
Empty merge

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agocompre on by default, no longer experimental
Nelson Ferreira [Mon, 23 Jan 2012 18:52:52 +0000 (13:52 -0500)]
compre on by default, no longer experimental

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoUse the real pre-processor var: DEBUG_SXEMACS
Nelson Ferreira [Mon, 23 Jan 2012 18:52:12 +0000 (13:52 -0500)]
Use the real pre-processor var: DEBUG_SXEMACS

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge remote-tracking branch 'origin/master' into njsf-cov
Nelson Ferreira [Mon, 23 Jan 2012 09:28:44 +0000 (04:28 -0500)]
Merge remote-tracking branch 'origin/master' into njsf-cov

12 years agoCoverity: Forward NULL: CID 607
Nelson Ferreira [Mon, 23 Jan 2012 09:26:35 +0000 (04:26 -0500)]
Coverity: Forward NULL: CID 607

* lib-src/etags.c (regex_tag_multiline): Really fix Forward NULL.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoSummary: minor, add stack to --with-error-checking to turn SSP on
Sebastian Freundt [Sun, 22 Jan 2012 11:42:14 +0000 (11:42 +0000)]
Summary: minor, add stack to --with-error-checking to turn SSP on
Keywords: bldchn diagnostics

This changeset fixes a potential stack bashing in the mapfam permutation
code by inserting proper break statements where they belong.  This could
be one of the reasons of bug #135 and it's yet to be shown that it fixes
anything (other than pleasing coverity).

* configure.ac: add `stack' to the error-checking multiarg

* m4/sxe-compiler.m4: check for -fstack-protector and link with libssp

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
12 years agoFix ase-interval from Nelson
Steve Youngs [Sat, 21 Jan 2012 06:44:57 +0000 (16:44 +1000)]
Fix ase-interval from Nelson

* merges:
  Fix crash in _ase_interval_union_boundary. Only fini tmp when ur->next becomes tmp->next

12 years agoFix crash in _ase_interval_union_boundary. Only fini tmp when ur->next becomes tmp...
Nelson Ferreira [Sat, 21 Jan 2012 06:22:07 +0000 (01:22 -0500)]
Fix crash in _ase_interval_union_boundary. Only fini tmp when ur->next becomes tmp->next

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity fixes from Nelson
Steve Youngs [Sat, 21 Jan 2012 05:36:53 +0000 (15:36 +1000)]
Coverity fixes from Nelson

* merges:
  Coverity: Assert side effect: CID 2
  Coverity: Checked return: CID 10
  Coverity: Checked return: CID 11
  Coverity: Checked return: CID 12
  Coverity: Char IO: CID 7
  Coverity: No effect: CID 134
  Coverity: Overrun static: CID 137, 136
  Coverity: Overrun static: CID 139
  Coverity: Overrun static: CID 141
  Coverity: Resource leak: CID 178
  Coverity: Resource leak: CID 180
  Coverity: Resource leak: CID 181
  Coverity: Resource leak: CID 181
  Coverity: Resource leak: CID 183
  Coverity: Resource Leak: CID 184
  Coverity: Resource Leak: CID 185
  Coverity: Forward NULL: CID 605
  Coverity: Missing return: CID 606

12 years agoCoverity: Assert side effect: CID 2
Nelson Ferreira [Sat, 21 Jan 2012 04:44:33 +0000 (23:44 -0500)]
Coverity: Assert side effect: CID 2

* src/extents.c (gap_array_delete_marker): Remove unnecessary
volatile (we don't multithread so we should have this be
interrupted. If at some point we make multi-threaded SXEmacs, this
should be protected by some barrier.

* src/extents.c (gap_array_delete_all_markers): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Checked return: CID 10
Nelson Ferreira [Sat, 21 Jan 2012 04:39:47 +0000 (23:39 -0500)]
Coverity: Checked return: CID 10

* lib-src/hexl.c (main): signal intent to ignore read char

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Checked return: CID 11
Nelson Ferreira [Sat, 21 Jan 2012 04:39:00 +0000 (23:39 -0500)]
Coverity: Checked return: CID 11

* lib-src/make-docfile.c (scan_lisp_file): Signal intent to ignore
read char.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Checked return: CID 12
Nelson Ferreira [Sat, 21 Jan 2012 04:38:14 +0000 (23:38 -0500)]
Coverity: Checked return: CID 12

* modules/ase/ase-interval.c (_ase_interval_union_item_fini):
Signal intention to ignore the return value of decref.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Char IO: CID 7
Nelson Ferreira [Sat, 21 Jan 2012 04:36:38 +0000 (23:36 -0500)]
Coverity: Char IO: CID 7

* lib-src/make-docfile.c (read_lisp_symbol): Proper handling of
cast for getc...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: No effect: CID 134
Nelson Ferreira [Sat, 21 Jan 2012 04:26:55 +0000 (23:26 -0500)]
Coverity: No effect: CID 134

* src/ui/TTY/event-tty.c (emacs_tty_next_event): Change the loop
variable to int to properly map the type of descriptors.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Overrun static: CID 137, 136
Nelson Ferreira [Sat, 21 Jan 2012 04:24:45 +0000 (23:24 -0500)]
Coverity: Overrun static: CID 137, 136

* src/mule/mule-charset.h (CHARSET_BY_ATTRIBUTES): Do paranoid
bounds checking...

* src/mule/mule-charset.h (REP_BYTES_BY_FIRST_BYTE): Make sure to
not dereference in fatal crash scenario where assert flows through...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Overrun static: CID 139
Nelson Ferreira [Sat, 21 Jan 2012 04:18:37 +0000 (23:18 -0500)]
Coverity: Overrun static: CID 139

* src/dumper.c (pdump_register_object): Fix of-by-one boundary and
return after abort for fatal crash scenario.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Overrun static: CID 141
Nelson Ferreira [Sat, 21 Jan 2012 04:13:10 +0000 (23:13 -0500)]
Coverity: Overrun static: CID 141

* src/ui/imgproc.c (get_histogram): Introduce paranoid histogram

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource leak: CID 178
Nelson Ferreira [Sat, 21 Jan 2012 04:04:34 +0000 (23:04 -0500)]
Coverity: Resource leak: CID 178

* lib-src/etags.c (regex_tag_multiline): Make it clear a non-null
name was allocated in substitute and always free it :)

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource leak: CID 180
Nelson Ferreira [Sat, 21 Jan 2012 03:57:44 +0000 (22:57 -0500)]
Coverity: Resource leak: CID 180

* lib-src/movemail.c (lock_dot): free the memory

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource leak: CID 181
Nelson Ferreira [Sat, 21 Jan 2012 03:55:04 +0000 (22:55 -0500)]
Coverity: Resource leak: CID 181

* lib-src/ootags.c (Erlang_functions): free the memory

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource leak: CID 181
Nelson Ferreira [Sat, 21 Jan 2012 03:53:29 +0000 (22:53 -0500)]
Coverity: Resource leak: CID 181

* lib-src/ootags.c (Erlang_functions): xfree the memory

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource leak: CID 183
Nelson Ferreira [Sat, 21 Jan 2012 03:52:05 +0000 (22:52 -0500)]
Coverity: Resource leak: CID 183

* lib-src/yow.c (yow): Free the memory...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource Leak: CID 184
Nelson Ferreira [Sat, 21 Jan 2012 03:49:06 +0000 (22:49 -0500)]
Coverity: Resource Leak: CID 184

* modules/ase/ase-interval.c (_ase_interval_union_boundary):
Properly get rid of the interval.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Resource Leak: CID 185
Nelson Ferreira [Sat, 21 Jan 2012 03:44:28 +0000 (22:44 -0500)]
Coverity: Resource Leak: CID 185

* modules/ase/ase-interval.c (_ase_subtract_intr_intr): Properly
get rid of the interval.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Forward NULL: CID 605
Nelson Ferreira [Sat, 21 Jan 2012 03:15:40 +0000 (22:15 -0500)]
Coverity: Forward NULL: CID 605

* src/ui/X11/event-Xt.c (Xt_timeout_callback): Just return in case
of fatal crash scenario.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Missing return: CID 606
Nelson Ferreira [Sat, 21 Jan 2012 03:13:23 +0000 (22:13 -0500)]
Coverity: Missing return: CID 606

* src/ui/window.c (window_display_buffer): Return NULL for the
fatal crash scenario.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoconfigure fix plus mapfam fix from Sebastian
Steve Youngs [Sat, 21 Jan 2012 02:16:00 +0000 (12:16 +1000)]
configure fix plus mapfam fix from Sebastian

* merges:
  Summary: fix, add missing break statements in mapfam permutation code Keywords: fix bug 135
  Summary: fix, properly expand OG_MULTIARG_ITEM indirections Keywords: bldchn

12 years agoMerge branch 'bug/135' into next
Sebastian Freundt [Sat, 21 Jan 2012 00:03:25 +0000 (00:03 +0000)]
Merge branch 'bug/135' into next

* bug/135:
  Summary: fix, add missing break statements in mapfam permutation code Keywords: fix bug 135

12 years agoSummary: fix, add missing break statements in mapfam permutation code
Sebastian Freundt [Sat, 21 Jan 2012 00:03:13 +0000 (00:03 +0000)]
Summary: fix, add missing break statements in mapfam permutation code
Keywords: fix bug 135

This changeset fixes a potential stack bashing in the mapfam permutation
code by inserting proper break statements where they belong.  This could
be one of the reasons of bug #135 and it's yet to be shown that it fixes
anything (other than pleasing coverity).

* src/map.c (__perm_nseq): no switch fallthrough, insert breaks

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
12 years agoMerge branch 'bldchn' into next
Sebastian Freundt [Fri, 20 Jan 2012 23:58:21 +0000 (23:58 +0000)]
Merge branch 'bldchn' into next

* bldchn:
  Summary: fix, properly expand OG_MULTIARG_ITEM indirections Keywords: bldchn

12 years agoSummary: fix, properly expand OG_MULTIARG_ITEM indirections
Sebastian Freundt [Fri, 20 Jan 2012 23:58:10 +0000 (23:58 +0000)]
Summary: fix, properly expand OG_MULTIARG_ITEM indirections
Keywords: bldchn

This changeset expands the explanations of multiarg items in option
groups properly (again), m4_text_wrap (and AS_HELP_STRING) fail to
evaluate arguments that come from the temporary redefinition of
OG_MULTIARG_ITEM.

* m4/sxe-option-groups.m4: mimic AS_HELP_STRING in temporary expansion
  of OG_MULTIARG_ITEM

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
12 years agoCoverity updates/fixes from Nelson
Steve Youngs [Fri, 20 Jan 2012 23:13:36 +0000 (09:13 +1000)]
Coverity updates/fixes from Nelson

* merges:
  Avoid warnings
  Coverity: Forward NULL: CID 32
  Coverity: Forward NULL: CID 33
  Coverity: Forward NULL: CID 34
  Coverity: Forward NULL: CID 35
  Coverity: Forward NULL: CID 37
  Coverity: Forward NULL: CID 38
  Coverity: Forward NULL: CID 39
  Coverity: Forward NULL: CID 42, 41
  Coverity: Forward NULL: CID 44, 43, 36
  Coverity: Forward NULL: CID 48
  Coverity: Forward NULL: CID 49
  Coverity: Forward NULL: CID 50
  Coverity: Forward NULL: CID 51
  Coverity: Forward NULL: CID 54, 53, 52
  Fix additional transcoding assertions
  Coverity: Negative returns: CID 121
  Update link to newest compface in INSTALL
  Coverity: Missing return: CID 604

12 years agoAvoid warnings
Nelson Ferreira [Fri, 20 Jan 2012 18:11:39 +0000 (13:11 -0500)]
Avoid warnings

* src/ui/X11/device-x.c (x_get_visual_depth): Avoid uninitialized
return in fatal crash.

* src/ui/X11/frame-x.c (x_set_frame_properties): Change warn to
message, just in case...

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Forward NULL: CID 32
Nelson Ferreira [Fri, 20 Jan 2012 17:54:38 +0000 (12:54 -0500)]
Coverity: Forward NULL: CID 32

* src/extents.c (extent_list_delete_marker): Make sure p is not
dereference if NULL even in case of fatal crash.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCoverity: Forward NULL: CID 33
Nelson Ferreira [Fri, 20 Jan 2012 17:52:29 +0000 (12:52 -0500)]
Coverity: Forward NULL: CID 33

* src/alloc.c (build_string): Make sure to only dereference str if
not NULL even in fatal crash case.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>