imgact_elf.c (36240ea5bf8d2e290604d23aeab9b90fbb0692b7) | imgact_elf.c (9ff5ce6baf165aeb3cb45dd7dd5a8dc9da4fc9d4) |
---|---|
1/*- 2 * Copyright (c) 1995-1996 S�ren Schmidt 3 * Copyright (c) 1996 Peter Wemm 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 173 unchanged lines hidden (view full) --- 182 size_t map_len; 183 vm_offset_t map_addr; 184 int error, rv; 185 size_t copy_len; 186 vm_object_t object; 187 vm_offset_t file_addr; 188 vm_offset_t data_buf = 0; 189 | 1/*- 2 * Copyright (c) 1995-1996 S�ren Schmidt 3 * Copyright (c) 1996 Peter Wemm 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 173 unchanged lines hidden (view full) --- 182 size_t map_len; 183 vm_offset_t map_addr; 184 int error, rv; 185 size_t copy_len; 186 vm_object_t object; 187 vm_offset_t file_addr; 188 vm_offset_t data_buf = 0; 189 |
190 object = vp->v_object; | 190 VOP_GETVOBJECT(vp, &object); |
191 error = 0; 192 193 /* 194 * It's necessary to fail if the filsz + offset taken from the 195 * header is greater than the actual file pager object's size. 196 * If we were to allow this, then the vm_map_find() below would 197 * walk right off the end of the file object and into the ether. 198 * --- 825 unchanged lines hidden --- | 191 error = 0; 192 193 /* 194 * It's necessary to fail if the filsz + offset taken from the 195 * header is greater than the actual file pager object's size. 196 * If we were to allow this, then the vm_map_find() below would 197 * walk right off the end of the file object and into the ether. 198 * --- 825 unchanged lines hidden --- |