MPS issue job003990

TitleMPS doesn't notice if clients write scanners that don't check error codes
Statusopen
Prioritynice
Assigned userRichard Brooksby
OrganizationRavenbrook
DescriptionIf the client writes a scanner that ignores the result code of MPS_FIX2 then the MPS might not detect low memory conditions properly and cause crashes in rare circumstances.
AnalysisWe could store a result code in the ScanStateStruct and check it at the end of the scan. We could skip fixes if it is set. We could occasionally deliberately return secret codes to abort the scan and (a) check it was aborted and (b) restart the (supposedly idempotent) scan.
How foundinspection
Evidence<https://github.com/drmeister/clasp/com...59acb8c6d53fb994#commitcomment-16765873>
Created byRichard Brooksby
Created on2016-03-18 17:31:52
Last modified byGareth Rees
Last modified on2018-06-27 13:05:13
History2016-03-18 RB Created.