Searched refs:mfn (Results 1 – 2 of 2) sorted by relevance
/PHP-8.0/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 615 char *p, *mfn; in file_apprentice() local 642 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice() 655 efree(mfn); in file_apprentice() 659 fn = mfn; in file_apprentice() 672 efree(mfn); in file_apprentice() 1354 char mfn[MAXPATHLEN]; in apprentice_load() local 1362 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load() 1369 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load() 1384 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
|
/PHP-8.0/ext/fileinfo/ |
H A D | libmagic.patch | 321 - free(mfn); 322 + efree(mfn); 330 - free(mfn); 331 + efree(mfn); 413 - char **filearr = NULL, *mfn; 444 + char mfn[MAXPATHLEN]; 456 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { 466 - free(mfn); 480 - free(mfn); 488 - filearr[files++] = mfn; [all …]
|
Completed in 25 milliseconds