[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-commit] [Mercurial][pypy/pypy][branch/py3.9] 3 commits: prevent overflow in index calculations
From:       "Matti Picus ( () mattip)" <foss () heptapod ! net>
Date:       2023-11-29 21:32:58
Message-ID: 6567ae0a3abfd_17e5a58ef8262220 () heptapod-foss ! mail
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Matti Picus pushed to branch branch/py3.9 at PyPy / pypy


Commits:
d349e5ff by Matti Picus at 2023-11-29T08:23:01+02:00
prevent overflow in index calculations

--HG--
branch : py3.9

- - - - -
786afd6b by Matti Picus at 2023-11-29T13:45:14+02:00
make sure an encoding does not have invalid surrogates

--HG--
branch : py3.9

- - - - -
f5273fb7 by Matti Picus at 2023-11-29T23:32:39+02:00
add create_pyobject_from_storage and use the HPy storage as the PyObject c struct.

Also rearrange the type creation so that legacy types call `attach` to fill all
the slots

--HG--
branch : py3.9

- - - - -


9 changed files:

- extra_tests/hpy_tests/_vendored/test_capsule.py
- pypy/module/_hpy_universal/interp_cpy_compat.py
- pypy/module/_hpy_universal/interp_slot.py
- pypy/module/_hpy_universal/interp_type.py
- pypy/module/_hpy_universal/test/_vendored/test_hpytype_legacy.py
- pypy/objspace/std/bytearrayobject.py
- pypy/objspace/std/test/test_bytearrayobject.py
- pypy/objspace/std/test/test_bytesobject.py
- pypy/objspace/std/unicodeobject.py


View it on Heptapod: \
https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4


-- 
View it on Heptapod: \
https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4
 You're receiving this email because of your account on foss.heptapod.net.


[Attachment #5 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" \
"http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en" \
style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, \
Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale \
mono, lucida console, monospace;'> <head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
Heptapod
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>


<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: var(--default-regular-font, "GitLab \
Sans"),-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto \
Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI \
Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit; }
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; \
font-family: var(--default-regular-font, "GitLab \
Sans"),-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto \
Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI \
Emoji","Segoe UI Symbol","Noto Color Emoji";'> <div class="content">

<h3 style="margin-top: 20px; margin-bottom: 10px;">
Matti Picus pushed to branch branch/py3.9 at <a \
href="https://foss.heptapod.net/pypy/pypy">PyPy / pypy</a> </h3>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
Commits:
</h4>
<ul>
<li>
<strong style="font-weight: bold;"><a \
href="https://foss.heptapod.net/pypy/pypy/-/commit/d349e5ff95c3c8949bef215f68722119ce8ff3c9">d349e5ff</a></strong>
 <div>
<span> by Matti Picus </span> <i> at 2023-11-29T08:23:01+02:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: \
14px; color: #333238; position: relative; font-family: var(--default-mono-font, \
"GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation \
Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida \
console",monospace; word-break: break-all; word-wrap: break-word; background-color: \
#fbfafd; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid \
#dcdcde;'>prevent overflow in index calculations

--HG--
branch : py3.9
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a \
href="https://foss.heptapod.net/pypy/pypy/-/commit/786afd6bd45ca9ee8016058bad1a2625365dcbfb">786afd6b</a></strong>
 <div>
<span> by Matti Picus </span> <i> at 2023-11-29T13:45:14+02:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: \
14px; color: #333238; position: relative; font-family: var(--default-mono-font, \
"GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation \
Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida \
console",monospace; word-break: break-all; word-wrap: break-word; background-color: \
#fbfafd; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid \
#dcdcde;'>make sure an encoding does not have invalid surrogates

--HG--
branch : py3.9
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a \
href="https://foss.heptapod.net/pypy/pypy/-/commit/f5273fb711a72f5c85efbfd9e526382b93af19b4">f5273fb7</a></strong>
 <div>
<span> by Matti Picus </span> <i> at 2023-11-29T23:32:39+02:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: \
14px; color: #333238; position: relative; font-family: var(--default-mono-font, \
"GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation \
Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida \
console",monospace; word-break: break-all; word-wrap: break-word; background-color: \
#fbfafd; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid \
#dcdcde;'>add create_pyobject_from_storage and use the HPy storage as the PyObject c \
struct.

Also rearrange the type creation so that legacy types call `attach` to fill all
the slots

--HG--
branch : py3.9
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
9 changed files:
</h4>
<ul>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#150aae3ee3b1c95b0da10ef1ff5dd3f8c7f2595f">
 extra_tests/hpy_tests/_vendored/test_capsule.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#728c0dea333635705f65cbbf072670d76bbe2a78">
 pypy/module/_hpy_universal/interp_cpy_compat.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#070cde0d9b55e272da42f5727961da1d5b84d6fa">
 pypy/module/_hpy_universal/interp_slot.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#e093602c46bdf022354e4458361c80c00a64e07c">
 pypy/module/_hpy_universal/interp_type.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#a683db64f8208b7ad6670a74cf3a6771373a648e">
 pypy/module/_hpy_universal/test/_vendored/test_hpytype_legacy.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#f19759a294a6c6a3c9ff3ddf31cc791c91682993">
 pypy/objspace/std/bytearrayobject.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#883d16fe7aeaa6bb21001279e9a8fc824a394d46">
 pypy/objspace/std/test/test_bytearrayobject.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#b77549b50de2967ee8db6cad93bdb355c8bf53ca">
 pypy/objspace/std/test/test_bytesobject.py
</a>
</li>
<li class="file-stats">
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb \
47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4#628048116f2248ee807d8ac2f793e3d60022d95c">
 pypy/objspace/std/unicodeobject.py
</a>
</li>
</ul>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
&#8212;
<br>
<a href="https://foss.heptapod.net/pypy/pypy/-/compare/7672b7e352a61f6d090ad469989e2eb47232b5bb...f5273fb711a72f5c85efbfd9e526382b93af19b4">View \
it on Heptapod</a>. <br>
You're receiving this email because of your account on <a target="_blank" \
rel="noopener noreferrer" href="https://foss.heptapod.net">foss.heptapod.net</a>. <a \
href="https://foss.heptapod.net/-/profile/notifications" target="_blank" \
rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> &#183; \
<a href="https://foss.heptapod.net/help" target="_blank" rel="noopener noreferrer" \
class="help-link">Help</a>



</p>
</div>
</body>
</html>



_______________________________________________
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-leave@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: pypy-svn@progressive-comp.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic