CS FundamentalsHardProduct-company placement · Security interview
A coverage-guided fuzzer runs a parser for hours with random mutations of seed inputs, and AddressSanitizer is enabled. What can it find without any hand-written expected outputs?
- A. Inputs that produce wrong but well-formed results
- B. Every logic bug reachable from the seed inputs
- C. Missing requirements
- D. Crashes, hangs and memory-safety violations, because the sanitizer and crash detection act as the oracle
Correct answer: D. Crashes, hangs and memory-safety violations, because the sanitizer and crash detection act as the oracle
Fuzzing needs an oracle; by default that is a crash, a timeout or a sanitizer report. Coverage feedback helps it reach deep code, but wrong results that do not crash need assertions, properties or differential testing to be noticed.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- After a production outage a team draws a diagram with the problem at the head and branches for People, Process, Tools, Environment and…
- In a RACI matrix for a release task, which rule is standard?
- COCOMO II computes Effort = 2.94 × Size^E × EAF person-months, with E = 0.91 + 0.01 × (sum of scale factors). For a 40 KSLOC project with…
- A project is behind schedule. The manager can either add people to critical-path activities or start some critical activities in parallel…
- Critical chain project management removes the safety margin from each task estimate and pools it into a project buffer at the end. Which…
- A rules engine must evaluate business rules such as (age > 18 AND country = 'IN') OR isVip from a small fixed grammar, using one class per…