[PATCH 0/3] Avoid VM crashes due Socket and cCallout misusage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 0/3] Avoid VM crashes due Socket and cCallout misusage

Holger Freyther
Hi,

this series attempts to fix some VM crashes on simple 'misusage' of the API.
When trying to play around it is always bad to have the VM crash, e.g. by
getting the parameters to a call wrong, or by forgetting to set an address
and a port on a datagram.



Holger Hans Peter Freyther (3):
  sockets: Check the length before attempting to fix data.
  sockets: Add a testcase to test invalid input
  cint: Fail the VMpr_CFuncDescriptor_call primitive with wrong args

 ChangeLog                    |   12 +++++++
 libgst/cint.c                |   51 ++++++++++++++++++++++---------
 libgst/sockets.c             |   11 ++++---
 packages/sockets/ChangeLog   |    9 +++++
 packages/sockets/UnitTest.st |   68++++++++++++++++++++++++++++++++++++++++++
 packages/sockets/package.xml |    6 ++++
 tests/testsuite.at           |    1 +
 7 files changed, 138 insertions(+), 20 deletions(-)
 create mode 100644 packages/sockets/UnitTest.st

-- 1.7.3.5

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk