Guest User

Ingo / Chuck - Get involved

a guest
Aug 22nd, 2016
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Get involved - OpenBSD
  2.  
  3. -------- Original Message --------
  4. Subject: opportunity to help: %s audit in mandoc
  5. Date: 2016-08-07 11:57
  6. From: Ingo Schwarze <[email protected]>
  7.  
  8. Hi,
  9.  
  10. from time to time, people ask how they can help OpenBSD development
  11. if they are new to that task.
  12.  
  13. Right now, there is a useful opportunity. Take the code in
  14. /usr/src/usr.bin/mandoc/, grep(1) it for "%s", and audit all instances
  15. you find, figuring out whether they can be reached with the char *
  16. being NULL or not. If you find one where the pointer can be NULL,
  17. construct an input file and a command line (for example, "'mandoc
  18. -Tlint foo.mdoc' or 'makewhatis -t foo.mdoc' with the attached
  19. file foo.mdoc") demonstrating that man(1), apropos(1), mandoc(1),
  20. or makewhatis(8) actually print "(null)", and send the report to
  21. me.
  22.  
  23. The task is not very difficult, but requires considerable time (i
  24. guess i would need up to two days to do the full audit, even though
  25. i know the code very well). I have a huge backlog of patches to
  26. check and a huge backlog of tricky programming tasks to tackle.
  27. Once somebody finds these issues for me, fixing them is trivial,
  28. and i can focus on work that is less easy to do for newcomers.
  29.  
  30. Besides, this will improve your code reading and auditing skills.
  31. If you find a few things, you could even try to tackle other
  32. parts of the tree which are more difficult.
  33.  
  34. In mandoc, there are almost certainly some instances because
  35. until now, i wasn't aware that printf("%s", NULL) is problematic.
  36.  
  37. Yours,
  38. Ingo
Advertisement
Add Comment
Please, Sign In to add comment