diff options
| -rw-r--r-- | sys/kern/imgact_aout.c | 5 | ||||
| -rw-r--r-- | sys/kern/imgact_gzip.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index a229720b1d00..4c96903ba4de 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: imgact_aout.c,v 1.33 1997/02/22 09:38:55 peter Exp $ + * $Id: imgact_aout.c,v 1.34 1997/04/13 01:48:21 dyson Exp $ */ #include "opt_rlimit.h" @@ -128,9 +128,6 @@ exec_aout_imgact(imgp) if (/* text can't exceed maximum text size */ a_out->a_text > MAXTSIZ || - /* data + bss can't exceed maximum data size */ - a_out->a_data + bss_size > MAXDSIZ || - /* data + bss can't exceed rlimit */ a_out->a_data + bss_size > imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur) diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c index e92db9ba9686..7d7643ee035b 100644 --- a/sys/kern/imgact_gzip.c +++ b/sys/kern/imgact_gzip.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: imgact_gzip.c,v 1.28 1997/02/22 09:38:57 peter Exp $ + * $Id: imgact_gzip.c,v 1.29 1997/04/13 01:48:22 dyson Exp $ * * This module handles execution of a.out files which have been run through * "gzip". This saves diskspace, but wastes cpu-cycles and VM. @@ -204,9 +204,6 @@ do_aout_hdr(struct imgact_gzip * gz) if ( /* text can't exceed maximum text size */ gz->a_out.a_text > MAXTSIZ || - /* data + bss can't exceed maximum data size */ - gz->a_out.a_data + gz->bss_size > MAXDSIZ || - /* data + bss can't exceed rlimit */ gz->a_out.a_data + gz->bss_size > gz->ip->proc->p_rlimit[RLIMIT_DATA].rlim_cur) { |
