Could 

addr = (char*)(void*)size_t(-1);

Be a better choice for a bad address? 

-----Original Message-----
From: Scott Zhong [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 29, 2008 1:22 PM
To: [EMAIL PROTECTED]
Subject: [PATCH] STDCXX-705

the default page size can vary depending on the OS and can be changed
with chatr.  Currently the test assumes the page size is 16kb which is
not the case on this platform thus causes the assertions to occur.  For
the short term, we can adjust the multiplier to 64 instead of 16.  For
the long term, we need a better method to create a bad address.


Index: 0.printf.cpp
===================================================================
--- 0.printf.cpp        (revision 616446)
+++ 0.printf.cpp        (working copy)
@@ -171,7 +171,7 @@
         addr = (char*)32;
 #else
         // the first page on HP-UX is readable, this might work
-        addr = (char*)(void*)bad_address + 1024 * 1024 * 16;
+        addr = (char*)(void*)bad_address + 1024 * 1024 * 64;
 #endif   // _RWSTD_OS_HP_UX
 
     }

Reply via email to