stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: Environment for the test of the string functions memory overrun with example
Date Sat, 15 Jul 2006 00:16:38 GMT
Farid Zaripov wrote:
>  > -----Original Message-----
>  > From: Martin Sebor [mailto:sebor@roguewave.com]
>  > Sent: Friday, July 14, 2006 12:07 AM
>  > To: stdcxx-dev@incubator.apache.org
>  > Subject: Re: Environment for the test of the string functions
>  > memory overrun with example
>  >
> [...]
>  >
>  > Okay, this version is closer to what I have in mind :) There
>  > are a few minor tweaks that I would still make but I think
>  > it's ready to commit as is (please go ahead and have Anton do
>  > it). We can make the tweaks later (we will also need a test
>  > to exercise this).
> [...]
> 
>   I have updated the rw_alloc.h and alloc.cpp according to your comments.
> 
>   Anton commited this version 
> (http://svn.apache.org/viewvc?rev=421918&view=rev).

Great, thanks!

> 
>   Also I wrote the test to exercise the rw_alloc() function 
> (tests/self/0.alloc.cpp). The test is attached.

Excellent! Is it expected to pass all assertions? If so, what
platform(s) did you test it on? I get the output below on
Solaris 9.

Martin

# INFO (S1) (8 lines):
# TEXT:
# COMPILER: gcc 4.1.0, __VERSION__ = "4.1.0"
# ENVIRONMENT: sparc-v8 running sunos
# FILE: 00_alloc.cpp
# COMPILED: Jul 14 2006, 15:11:49
# COMMENT:
######################################################

# ASSERTION (S7) (4 lines):
# TEXT: expected read access, got no read access
# CLAUSE: /build/sebor/dev/stdlib/tests/test/00_alloc.cpp
# LINE: 127

# ASSERTION (S7) (4 lines):
# TEXT: expected read access, got no read access
# CLAUSE: /build/sebor/dev/stdlib/tests/test/00_alloc.cpp
# LINE: 137

# ASSERTION (S7) (4 lines):
# TEXT: expected read access, got no read access
# CLAUSE: /build/sebor/dev/stdlib/tests/test/00_alloc.cpp
# LINE: 142

# ASSERTION (S7) (4 lines):
# TEXT: expected read access, got no read access
# CLAUSE: /build/sebor/dev/stdlib/tests/test/00_alloc.cpp
# LINE: 147

# ASSERTION (S7) (4 lines):
# TEXT: expected read access, got no read access
# CLAUSE: /build/sebor/dev/stdlib/tests/test/00_alloc.cpp
# LINE: 157

# ASSERTION (S7) (4 lines):
# TEXT: expected read access, got no read access
# CLAUSE: /build/sebor/dev/stdlib/tests/test/00_alloc.cpp
# LINE: 162

# +-----------------------+--------+--------+--------+
# | DIAGNOSTIC            | ACTIVE |  TOTAL |INACTIVE|
# +-----------------------+--------+--------+--------+
# | (S1) INFO             |      1 |      1 |     0% |
# | (S7) ASSERTION        |      6 |     64 |    90% |
# +-----------------------+--------+--------+--------+

Mime
View raw message