Bugzilla – Attachment 1095 Details for
Bug 1131
buffer_append_space: alloc not supported Error with V 4.2p1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
abort() on buffer errors
buffer-abort.diff (text/plain), 846 bytes, created by
Damien Miller
on 2006-03-12 15:04:07 AEDT
(
hide
)
Description:
abort() on buffer errors
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2006-03-12 15:04:07 AEDT
Size:
846 bytes
patch
obsolete
>--- buffer.c.orig Thu Jan 19 05:47:57 2006 >+++ buffer.c Thu Jan 19 05:49:04 2006 >@@ -78,8 +78,10 @@ > u_int newlen; > void *p; > >- if (len > BUFFER_MAX_CHUNK) >- fatal("buffer_append_space: len %u not supported", len); >+ if (len > BUFFER_MAX_CHUNK) { >+ error("buffer_append_space: len %u not supported", len); >+ abort(); >+ } > > /* If the buffer is empty, start using it from the beginning. */ > if (buffer->offset == buffer->end) { >@@ -107,9 +109,11 @@ > /* Increase the size of the buffer and retry. */ > > newlen = buffer->alloc + len + 32768; >- if (newlen > BUFFER_MAX_LEN) >- fatal("buffer_append_space: alloc %u not supported", >+ if (newlen > BUFFER_MAX_LEN) { >+ error("buffer_append_space: alloc %u not supported", > newlen); >+ abort(); >+ } > buffer->buf = xrealloc(buffer->buf, newlen); > buffer->alloc = newlen; > goto restart;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1131
:
1071
|
1072
|
1092
| 1095 |
1100
|
1103
|
1113
|
1114
|
1115
|
1116
|
1117