I'm inclined to say that if there's a bug in some grading software and some students kill themselves for failing, the problem here is not with the software.
Software design could, probably should, have incorporated the social context of failure. This is Asia, India in particular, that we are talking about here - the hyper-competitiveness that these kids go through is probably worse than what medical doctors go through in prestigious schools in the US.
Yeah sure. My bad. Let's be reasonable:
if(grade < 5)grade = 5
Still a one liner.
You seem to have forgot that the software defect was an error in grading.