Actions
Bug #21961
closedMarshal.load freeze option fail to freeze linked strings
Bug #21961:
Marshal.load freeze option fail to freeze linked strings
Description
str = "test"
arr = [str, str]
strings = Marshal.load(Marshal.dump(arr), freeze: true)
p strings.map(&:frozen?) # => [true, false]
Expected: [true, true]
Updated by byroot (Jean Boussier) 12 days ago
- Description updated (diff)
Updated by byroot (Jean Boussier) 11 days ago
- Status changed from Open to Closed
Applied in changeset git|54c4694994cc3bcfea9058b22ba3e68af6aaf740.
marshal.c: properly freeze linked strings
[Bug #21961]
Updated by hsbt (Hiroshi SHIBATA) 9 days ago
- Backport changed from 3.2: WONTFIX, 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED to 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: REQUIRED
ruby_3_3 acfdc0ac885ea4641f2e7d9d966fbb2acca7c883 merged revision(s) 54c4694994cc3bcfea9058b22ba3e68af6aaf740.
Updated by byroot (Jean Boussier) 9 days ago
- Subject changed from Marshal.load freeze option fail to free linked strings to Marshal.load freeze option fail to freeze linked strings
Updated by k0kubun (Takashi Kokubun) about 5 hours ago
- Backport changed from 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: REQUIRED to 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: DONE
ruby_4_0 4fa4d71d751a4efeb5616ca7227fa57df0e718b0 merged revision(s) 54c4694994cc3bcfea9058b22ba3e68af6aaf740.
Actions