I wonder whether anyone is inclined to answer the original question. No matter what the subject's knowledge of C programming, this seems to be a bug in uport -- isn't that the POINT of using protected memory? No program should be able to corrupt memory so it can corrupt the system and cause it to crash.