Menu

#2 Segmentation Fault

closed-fixed
nobody
None
5
2003-05-01
2002-09-25
Anonymous
No

"tnef - t winmail.dat" produces an segfault.

compile errors:

tnef.c: In function `file_write':
tnef.c:230: warning: initialization makes pointer from
integer without a cast
tnef.c:271: warning: initialization makes pointer from
integer without a cast
tnef.c: In function `munge_fname':
tnef.c:312: warning: passing arg 1 of `strlen' makes
pointer from integer without a cast
tnef.c:312: warning: passing arg 2 of `memcpy' makes
pointer from integer without a cast
tnef.c:312: warning: passing arg 1 of `__strdup' makes
pointer from integer without a cast

System

Debian Potato

Discussion

  • Mark Simpson

    Mark Simpson - 2002-09-25

    Logged In: YES
    user_id=479738

    Please attach the following:

    * input file
    * output of configure
    * version of tnef
    * output of tnef with --verbose --debug switches

     
  • Nobody/Anonymous

    Logged In: NO

    ***************************** FILE ********************************
    Any winmail.dat ( Sender uses Outlook 2000 )

    ********************** configure output **************************
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets ${MAKE}... yes
    checking for gawk... (cached) mawk
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc
    checking for gcc option to accept ANSI C... none needed
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking for ranlib... ranlib
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for memory.h... (cached) yes
    checking for string.h... (cached) yes
    checking for size_t... yes
    checking for an ANSI C-conforming const... yes
    checking for int... yes
    checking size of int... 4
    checking for strdup... yes
    checking for getopt_long... yes
    checking for basename... yes
    checking for ldiv... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for strrchr... yes
    checking for memmove... yes
    checking for memset... yes
    checking for vprintf... yes
    checking for _doprnt... no
    checking whether lstat dereferences a symlink specified with
    a trailing slash... yes
    checking whether stat accepts an empty string... no
    checking for stdlib.h... (cached) yes
    checking for working malloc... yes
    checking whether to enable maintainer-specific portions of
    Makefiles... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating BUGS
    config.status: creating tnef.spec
    config.status: creating doc/Makefile
    config.status: creating src/Makefile
    config.status: creating tests/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands

    **************************** version of tnef ************************
    tnef-1.1.2.tar.gz

    ************************** make output ***************************
    make all-recursive
    make[1]: Entering directory `/usr/local/src/tnef-1.1.2'
    Making all in doc
    make[2]: Entering directory `/usr/local/src/tnef-1.1.2/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/src/tnef-1.1.2/doc'
    Making all in src
    make[2]: Entering directory `/usr/local/src/tnef-1.1.2/src'
    /bin/sh -c 'TAG=tnef_name mawk -f ./mkdata.awk \ ./names.data'
    /bin/sh -c 'TAG=tnef_type mawk -f ./mkdata.awk \ ./types.data'
    /bin/sh -c 'TAG=mapi_type mawk -f ./mkdata.awk \ ./mapi-types.data'
    /bin/sh -c 'TAG=mapi_name mawk -f ./mkdata.awk \ ./mapi-names.data'
    make all-am
    make[3]: Entering directory `/usr/local/src/tnef-1.1.2/src'
    source='tnef_names.c' object='tnef_names.o' libtool=no \ depfile='.deps/tnef_names.Po'
    tmpdepfile='.deps/tnef_names.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -
    f 'tnef_names.c' || echo './'`tnef_names.c
    source='tnef_types.c' object='tnef_types.o' libtool=no \ depfile='.deps/tnef_types.Po'
    tmpdepfile='.deps/tnef_types.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -
    f 'tnef_types.c' || echo './'`tnef_types.c
    source='mapi_types.c' object='mapi_types.o' libtool=no \ depfile='.deps/mapi_types.Po'
    tmpdepfile='.deps/mapi_types.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -
    f 'mapi_types.c' || echo './'`mapi_types.c
    source='mapi_names.c' object='mapi_names.o' libtool=no \ depfile='.deps/mapi_names.Po'
    tmpdepfile='.deps/mapi_names.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -
    f 'mapi_names.c' || echo './'`mapi_names.c
    source='alloc.c' object='alloc.o' libtool=no \ depfile='.deps/alloc.Po' tmpdepfile='.deps/alloc.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c `test -f 'tnef.c'
    || echo './'`tnef.c
    tnef.c: In function `file_write':
    tnef.c:230: warning: initialization makes pointer from integer
    without a cast
    tnef.c:271: warning: initialization makes pointer from integer
    without a cast
    tnef.c: In function `munge_fname':
    tnef.c:312: warning: passing arg 1 of `strlen' makes pointer
    from integer without a cast
    tnef.c:312: warning: passing arg 2 of `memcpy' makes pointer
    from integer without a cast
    tnef.c:312: warning: passing arg 1 of `__strdup' makes pointer
    from integer without a cast
    gcc -g -O2 -o tnef alloc.o main.o path.o tnef.o
    tnef_names.o tnef_types.o mapi_types.o mapi_names.o
    make[3]: Leaving directory `/usr/local/src/tnef-1.1.2/src'
    make[2]: Leaving directory `/usr/local/src/tnef-1.1.2/src'
    Making all in tests
    make[2]: Entering directory `/usr/local/src/tnef-1.1.2/tests'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/src/tnef-1.1.2/tests'
    make[2]: Entering directory `/usr/local/src/tnef-1.1.2'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/usr/local/src/tnef-1.1.2'
    make[1]: Leaving directory `/usr/local/src/tnef-1.1.2'

    ********************* tnef --verbose --debug *********************
    TNEF Key: b3a
    TNEF Version [type: dword] = 00010000
    OEM Codepage [type: byte] = e4 04 00 00 00 00 00 00
    Message Class [type: word] = 5049 5049 5049...
    Priority [type: short] = 2
    Owner Appointment ID [type: long] = 0
    Response Requested. [type: short] = 1
    Date Recieved [type: date] = Wed 2002/09/25 13:56:00
    MAPI Properties [type: byte] = 22 00 00 00 0b 00 02 00 01
    00...
    Attachment Rendering Data [type: byte] = 01 00 ff ff ff ff 20 00
    20 00...
    Attachment File Name [type: string] ='Untitled Attachment'
    Attachment Modification Date [type: date] = Wed 2002/09/25
    13:56:58
    Attachment Data [type: byte] = 44 69 65 73 65 20 41 6e 6c
    61...
    Attachment Meta File [type: byte] = 01 00 09 00 00 03 dc 06
    00 00...
    Attachment [type: byte] = 10 00 00 00 03 00 20 0e f8 0f...
    MAPI_ATTACH_SIZE [type: MAPI integer (32 bits)]
    [num_values = 1] =
    value #0 [len: 4] = 4088
    MAPI_DISPLAY_NAME [type: MAPI string] [num_values = 1]
    =
    value #0 [len: 12] = asdfasdf
    MAPI_ATTACH_DATA_OBJ [type: MAPI embedded object]
    [num_values = 0] =
    0000 [type: MAPI null property] [num_values = 0] =
    0000 [type: 0a59] [num_values = 0] =
    MAPI_ALTERNATE_RECIPIENT_ALLOWED [type: 0307]
    [num_values = 0] =
    0000 [type: 0000] [num_values = 0] =
    0000 [type: 00c0] [num_values = 0] =
    4600 [type: 0000] [num_values = 0] =
    223e [type: 9f78] [num_values = 0] =
    0601 [type: 0b3a] [num_values = 0] =
    0400 [type: 0890] [num_values = 0] =
    0000 [type: 0000] [num_values = 0] =
    0100 [type: 0100] [num_values = 0] =
    9007 [type: 0100] [num_values = 0] =
    MAPI_CONTENT_IDENTIFIER [type: MAPI currency (64
    bits)] [num_values = 0] =
    Segmentation fault

     
  • Mark Simpson

    Mark Simpson - 2002-10-27

    Logged In: YES
    user_id=479738

    Have corrected problem with compile errors. Hopefully that
    will correct the segfault.

    Was never able to reproduce

     
  • Mark Simpson

    Mark Simpson - 2002-10-27
    • status: open --> closed
     
  • Mark Simpson

    Mark Simpson - 2002-12-21

    Logged In: YES
    user_id=479738

    Further reading of this bug in light of Bug 620072 leads me
    to believe that this bug (the segfault) is in fact the same
    as that bug.

     
  • Mark Simpson

    Mark Simpson - 2003-05-01
    • status: closed --> closed-fixed