Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Is putting security checks in the C library a good or a bad idea? Why?

Is putting security checks in the C library a good or a bad idea? Why?

Answers


Faith
It is maybe a good idea if performance is a concern, as it bypasses the context switch (from user mode
to kernel mode and back) which is an expensive (time-consuming) operation, while providing a basic
level of protection from badly written programmes. However, it would be stupid not to put security checks
in the kernel libraries because the user-land C libraries can be freely attacked by malicious users and
programmes.

Titany answered the question on April 25, 2022 at 13:50

Answer Attachments

Exams With Marking Schemes

Related Questions