Searched refs:mfn (Results 1 – 2 of 2) sorted by relevance
/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 577 char *p, *mfn; in file_apprentice() local 605 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice() 618 efree(mfn); in file_apprentice() 622 fn = mfn; in file_apprentice() 635 efree(mfn); in file_apprentice() 1260 char mfn[MAXPATHLEN]; in apprentice_load() local 1268 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load() 1275 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load() 1290 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
|
/PHP-7.2/ext/fileinfo/ |
H A D | libmagic.patch | 362 - free(mfn); 363 + efree(mfn); 371 - free(mfn); 372 + efree(mfn); 454 - char **filearr = NULL, *mfn; 485 + char mfn[MAXPATHLEN]; 497 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { 507 - free(mfn); 519 - free(mfn); 526 - filearr[files++] = mfn; [all …]
|
Completed in 15 milliseconds