Advertisement
Guest User

Ingo / Chuck - Get involved

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