Project:
View Revisions: Issue #48070 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0048070: OOM compressing JS with certain regexp | ||
Revision | 2021-11-16 12:05 by alostale | ||
Steps To Reproduce | 1. Include this line in any JavaScript: const letsCrash = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/; 2. With no module in development serve the JavaScript containing that line: ERROR in logs: at java.util.Arrays.copyOf(Arrays.java:3745) ~[?:?] at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:120) ~[?:?] at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:95) ~[?:?] at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:137) ~[?:?] at org.openbravo.client.kernel.JSMin.action(JSMin.java:188) ~[classes/:?] at org.openbravo.client.kernel.JSMin.jsmin(JSMin.java:295) ~[classes/:?] at org.openbravo.client.kernel.JSCompressor.compress(JSCompressor.java:57) [classes/:?] Alternatively execute regexCompression test from MR [1]. --- [1] https://gitlab.com/openbravo/product/openbravo/-/merge_requests/457/ [^] |
||
Revision | 2021-11-16 12:00 by alostale | ||
Steps To Reproduce | 1. Include this line in any JavaScript: const letsCrash = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/; 2. With no module in development serve the JavaScript containing that line: ERROR in logs: at java.util.Arrays.copyOf(Arrays.java:3745) ~[?:?] at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:120) ~[?:?] at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:95) ~[?:?] at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:137) ~[?:?] at org.openbravo.client.kernel.JSMin.action(JSMin.java:188) ~[classes/:?] at org.openbravo.client.kernel.JSMin.jsmin(JSMin.java:295) ~[classes/:?] at org.openbravo.client.kernel.JSCompressor.compress(JSCompressor.java:57) [classes/:?] |
||
Revision | 2021-11-16 12:00 by alostale | ||
Steps To Reproduce | 1. Include this line in any JavaScript: <code> const letsCrash = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/; </code> 2. With no module in development serve the JavaScript containing that line: ERROR in logs: at java.util.Arrays.copyOf(Arrays.java:3745) ~[?:?] at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:120) ~[?:?] at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:95) ~[?:?] at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:137) ~[?:?] at org.openbravo.client.kernel.JSMin.action(JSMin.java:188) ~[classes/:?] at org.openbravo.client.kernel.JSMin.jsmin(JSMin.java:295) ~[classes/:?] at org.openbravo.client.kernel.JSCompressor.compress(JSCompressor.java:57) [classes/:?] |
Copyright © 2000 - 2009 MantisBT Group |