2 ms·
A defensive copy is the cheap way to fix this. The bug is a potential security vulnerability since it can affect the value of interned strings, which can break
by barrkel 3y ago
A defensive copy is the cheap way to fix this.
The bug is a potential security vulnerability since it can affect the value of interned strings, which can break other libraries.
- pshirshov 3y agoThat still has to be done ad-hoc and might kill performance for many usecases. This is not a bug, but a specified behavior.
- mmis1000 3y agoEven the example in article alone. Imagine someone intern a broken "script" string, and people trying to sanitize HTML script tags no longer find it.