public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/5064: java/lang/natClassLoader.cc doesn't compile on systems without snprintf
@ 2001-12-10 19:55 tromey
  0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2001-12-10 19:55 UTC (permalink / raw)
  To: gcc-bugs, gcc-gnats, gcc-prs, java-prs, nobody, ro, tromey

Synopsis: java/lang/natClassLoader.cc doesn't compile on systems without snprintf

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Mon Dec 10 19:55:39 2001
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Mon Dec 10 19:55:39 2001
State-Changed-Why:
    I've checked in a fix for this.
    Please give it a try.
    I chose to use strncpy instead.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5064&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libgcj/5064: java/lang/natClassLoader.cc doesn't compile on systems without snprintf
@ 2001-12-10 20:06 tromey
  0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2001-12-10 20:06 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR libgcj/5064; it has been noted by GNATS.

From: tromey@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  java-prs@gcc.gnu.org, nobody@gcc.gnu.org, ro@TechFak.Uni-Bielefeld.DE,
  tromey@gcc.gnu.org
Cc:  
Subject: Re: libgcj/5064: java/lang/natClassLoader.cc doesn't compile on systems without snprintf
Date: 11 Dec 2001 03:55:40 -0000

 Synopsis: java/lang/natClassLoader.cc doesn't compile on systems without snprintf
 
 Responsible-Changed-From-To: unassigned->tromey
 Responsible-Changed-By: tromey
 Responsible-Changed-When: Mon Dec 10 19:55:39 2001
 Responsible-Changed-Why:
     I'm handling this.
 State-Changed-From-To: open->closed
 State-Changed-By: tromey
 State-Changed-When: Mon Dec 10 19:55:39 2001
 State-Changed-Why:
     I've checked in a fix for this.
     Please give it a try.
     I chose to use strncpy instead.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5064&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* libgcj/5064: java/lang/natClassLoader.cc doesn't compile on systems without snprintf
@ 2001-12-10 15:46 Rainer Orth
  0 siblings, 0 replies; 3+ messages in thread
From: Rainer Orth @ 2001-12-10 15:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Bryce McKinlay


>Number:         5064
>Category:       libgcj
>Synopsis:       java/lang/natClassLoader.cc doesn't compile on systems without snprintf
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 10 15:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rainer Orth
>Release:        3.1 20011210 (experimental)
>Organization:
>Environment:
System: OSF1 korsakov V4.0 1229 alpha
Machine: alpha
	
host: alphaev67-dec-osf4.0f
build: alphaev67-dec-osf4.0f
target: alphaev67-dec-osf4.0f
configured with: /vol/gnu/src/gcc/gcc-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --enable-libgcj alphaev67-dec-osf4.0f
>Description:
libgcj fails to compile on this target:

/vol/gnu/src/gcc/gcc-dist/libjava/java/lang/natClassLoader.cc: In function 
   `void _Jv_RegisterClassHookDefault(java::lang::Class*)':
/vol/gnu/src/gcc/gcc-dist/libjava/java/lang/natClassLoader.cc:468: `snprintf' 
   undeclared (first use this function)
/vol/gnu/src/gcc/gcc-dist/libjava/java/lang/natClassLoader.cc:468: (Each 
   undeclared identifier is reported only once for each function it appears 
   in.)

Tru64 UNIX V4.0 (as well as e.g. IRIX 6.2 and Solaris 2.5.1) lacks snprintf in
libc.  libgcj should still be usable on such platforms.
	
>How-To-Repeat:
Bootstrap gcc with --enable-libgcj.
	
>Fix:
Use sprintf with a format (like %.170s or some such) to avoid buffer overflows.
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-11  4:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-10 19:55 libgcj/5064: java/lang/natClassLoader.cc doesn't compile on systems without snprintf tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-12-10 20:06 tromey
2001-12-10 15:46 Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).