cdesktopenv/cde
Jon Trulson 606df517f0 dtprintinfo: Fix SIGSEGV in dtprintinfo (passing NULL as first argument to catgets).
Patch from Douglas Mencken <dougmencken@gmail.com>:

The issue is that MESSAGE tries to invoke catgets with NULL first
parameter, which is dereferenced inside catgets (Std C Library
function) without checking, from catgets.c source:

if (catalog->name_ptr[idx + 0] == (u_int32_t) set
          && catalog->name_ptr[idx + 1] == (u_int32_t) message)

On the other hand, there's a special value: -1 (cast to nl_catd),
which must be used instead of 0 (NULL) in the case when we are unable
to provide real catalog_desc, from catgets.c source:

  /* Be generous if catalog which failed to be open is used.  */
  if (catalog_desc == (nl_catd) -1 || ++set <= 0 || message < 0)
    return (char *) string;
2012-08-06 17:12:38 -06:00
..
admin Allow installing the terminfo file for dtterm to also work with path as 2012-07-27 14:39:08 +01:00
config Enable PowerPC to be recognized by build. 2012-08-06 17:09:01 -06:00
databases copy CONTRIBUTORS file into /usr/dt/ during install 2012-07-24 18:49:11 -06:00
doc Add in a CONTRIBUTORS file for all people that have made changes post 2012-07-24 15:23:16 +01:00
examples
imports/motif Add missing Mrm, Xm, and Uil .msg files for the various locales from the motif src. 2012-07-16 19:49:28 -06:00
include
lib libtt: client init(): use fcntl F_SETFD correctly. 2012-07-27 19:17:14 -06:00
logs
osf
programs dtprintinfo: Fix SIGSEGV in dtprintinfo (passing NULL as first argument to catgets). 2012-08-06 17:12:38 -06:00
util
.gitignore gitignore: add rest of generated files. git status is much cleaner now :) 2012-08-03 15:57:06 -06:00
BUGREPORT
CLOSEDBUGS
CONTRIBUTORS Add Matthew Howkins (dtappbuilder, nsgmls, dtcm Linux compilation) 2012-08-04 23:16:08 +01:00
COPYING
Imakefile
Makefile Increment CDE version number to 2.2.0 2012-07-16 15:23:40 +01:00
OPENBUGS
README-2.1.10
README-2.1.20
README-2.1.30
README-2.1.30.snapshot
ReleaseNotes.ps
ReleaseNotes.sgm
copyright Add in a CONTRIBUTORS file for all people that have made changes post 2012-07-24 15:23:16 +01:00
copyright.old As 'copyright' is used by dthello, make sure that it's based on the current 2012-07-04 17:30:04 +01:00