Searched refs:mfn (Results 1 – 2 of 2) sorted by relevance
/PHP-8.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 666 char *p, *mfn; in file_apprentice() local 693 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice() 706 efree(mfn); in file_apprentice() 710 fn = mfn; in file_apprentice() 723 efree(mfn); in file_apprentice() 1486 char mfn[MAXPATHLEN]; in apprentice_load() local 1494 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load() 1501 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load() 1516 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
|
/PHP-8.3/ext/fileinfo/ |
H A D | libmagic.patch | 264 - free(mfn); 265 + efree(mfn); 273 - free(mfn); 274 + efree(mfn); 356 - char **filearr = NULL, *mfn; 387 + char mfn[MAXPATHLEN]; 399 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { 409 - free(mfn); 423 - free(mfn); 431 - filearr[files++] = mfn; [all …]
|
Completed in 28 milliseconds