|
Lines 109-116
Link Here
|
| 109 |
printf("unknown ecoff magic %x\n", eap->magic); |
109 |
printf("unknown ecoff magic %x\n", eap->magic); |
| 110 |
return ENOEXEC; |
110 |
return ENOEXEC; |
| 111 |
} |
111 |
} |
| 112 |
osf_auxargs = malloc(sizeof(Osf_Auxargs), M_TEMP, M_WAITOK); |
112 |
osf_auxargs = malloc(sizeof(Osf_Auxargs), M_TEMP, M_WAITOK | M_ZERO); |
| 113 |
bzero(osf_auxargs, sizeof(Osf_Auxargs)); |
|
|
| 114 |
imgp->auxargs = osf_auxargs; |
113 |
imgp->auxargs = osf_auxargs; |
| 115 |
osf_auxargs->executable = osf_auxargs->exec_path; |
114 |
osf_auxargs->executable = osf_auxargs->exec_path; |
| 116 |
path_not_saved = copyinstr(imgp->fname, osf_auxargs->executable, |
115 |
path_not_saved = copyinstr(imgp->fname, osf_auxargs->executable, |
|
Lines 226-233
Link Here
|
| 226 |
raw_dend = (eap->data_start + eap->dsize); |
225 |
raw_dend = (eap->data_start + eap->dsize); |
| 227 |
if (dend > raw_dend) { |
226 |
if (dend > raw_dend) { |
| 228 |
caddr_t zeros; |
227 |
caddr_t zeros; |
| 229 |
zeros = malloc(dend-raw_dend,M_TEMP,M_WAITOK); |
228 |
zeros = malloc(dend-raw_dend,M_TEMP,M_WAITOK|M_ZERO); |
| 230 |
bzero(zeros,dend-raw_dend); |
|
|
| 231 |
if ((error = copyout(zeros, (caddr_t)raw_dend, |
229 |
if ((error = copyout(zeros, (caddr_t)raw_dend, |
| 232 |
dend-raw_dend))) { |
230 |
dend-raw_dend))) { |
| 233 |
uprintf("Can't zero start of bss, error %d\n",error); |
231 |
uprintf("Can't zero start of bss, error %d\n",error); |