delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/30/21:00:05

From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Subject: RE: cygwin.dll bug
30 Jan 1997 21:00:05 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <009AF2AB.68E7EB80.8733.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp
Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi, you wrote:

: >Program received signal SIGSEGV, Segmentation fault.
: >strncpy (dst=0x263eb30 "H_c\002\027&@", src=0x0, n=20)
 
: The debugger appears to be telling you that you called strncpy with a null
: src pointer (src=0x0), which would indeed cause a segmentation fault. If
: your code is not at fault then something truly bizarre is happening to make
: the src pointer zero before it gets to the strncpy function. I have to
: admit I suspect the calling code (i.e. your code), not the library... sorry.

I hope that's not very old, bad code relying to dereference NULL...


Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019