jdk/src/java.base/unix/native/launcher/jexec.c
changeset 38441 43ef784e3a96
parent 29389 348a32f79d79
child 44037 c590b1dc6334
equal deleted inserted replaced
38440:9e77c5b81def 38441:43ef784e3a96
   329                 off_t xlen  = LOCEXT(buf);
   329                 off_t xlen  = LOCEXT(buf);
   330                 off_t start = LOCHDR + flen;
   330                 off_t start = LOCHDR + flen;
   331                 off_t end   = start  + xlen;
   331                 off_t end   = start  + xlen;
   332 
   332 
   333                 if (end <= count) {
   333                 if (end <= count) {
       
   334                     end -= 4; // make sure there are 4 bytes to read at start
   334                     while (start < end) {
   335                     while (start < end) {
   335                         off_t xhid  = SH(buf, start);
   336                         off_t xhid  = SH(buf, start);
   336                         off_t xdlen = SH(buf, start + 2);
   337                         off_t xdlen = SH(buf, start + 2);
   337 
   338 
   338                         start += 4 + xdlen;
   339                         start += 4 + xdlen;