Home
last modified time | relevance | path

Searched refs:bytecnt (Results 1 – 2 of 2) sorted by relevance

/PHP-7.1/ext/fileinfo/libmagic/
H A Dsoftmagic.c1092 size_t lines, linecnt, bytecnt; in mcopy() local
1103 bytecnt = linecnt * 80; in mcopy()
1105 if (bytecnt == 0) { in mcopy()
1106 bytecnt = 1 << 14; in mcopy()
1109 if (bytecnt > nbytes) { in mcopy()
1110 bytecnt = nbytes; in mcopy()
1112 if (offset > bytecnt) { in mcopy()
1113 offset = bytecnt; in mcopy()
1121 end = last = RCAST(const char *, s) + bytecnt; in mcopy()
1134 last = RCAST(const char *, s) + bytecnt; in mcopy()
/PHP-7.1/ext/fileinfo/
H A Dlibmagic.patch3434 - bytecnt = linecnt * 80;
3437 - bytecnt = m->str_range;
3442 + bytecnt = linecnt * 80;
3444 - if (bytecnt == 0 || bytecnt > nbytes - offset)
3445 - bytecnt = nbytes - offset;
3446 + if (bytecnt == 0) {
3447 + bytecnt = 1 << 14;
3450 + if (bytecnt > nbytes) {
3451 + bytecnt = nbytes;
3453 + if (offset > bytecnt) {
[all …]

Completed in 24 milliseconds