]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 19 Oct 2004 21:45:14 +0000 (21:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 19 Oct 2004 21:45:14 +0000 (21:45 +0000)
2004-10-19  Alfred M. Szmidt  <ams@gnu.org>

* sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
(__readonly_area): ... this.

ChangeLog
sysdeps/generic/readonly-area.c

index f57da5f16e2a9d62fa29ff2032f57d570ca1bc7a..5d57defef54643cd70ae3d20c40d01cb10d446c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-19  Alfred M. Szmidt  <ams@gnu.org>
+
+       * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
+       (__readonly_area): ... this.
+
 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
index df5b96015c072704a1697ce889e043f8f651f9b5..4b8172f1935a56f23360e7cbf8d85b19b4cbc3c4 100644 (file)
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <stdlib.h>
+
 /* Return 1 if the whole area PTR .. PTR+SIZE is not writable.
    Return -1 if it is writable.  */
 
-#include <stdlib.h>
-
 int
-__readonly_str (const void *ptr, size_t size)
+__readonly_area (const void *ptr, size_t size)
 {
-  /* The conservative answer is that all strings are writable.  */
-  return -1;
+  /* We cannot determine in general whether memory is writable or not.
+     This must be handled in a system-dependent manner.  to not
+     unconditionally break code we need to return here a positive
+     answer.  This disables this security measure but that is the
+     price people have to pay for using systems without a real
+     implementation of this interface.  */
+  return 1;
 }