← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. simple_write_to_buffer() is complicated

    People say that it’s a red flag when a function has “simple” in the name and that’s true for the simple_write_to_buffer() function, for sure.

  2. No AI Slop

    You have probably been directed here because someone suspects you have sent AI Slop.

  3. Reviewing Magical Cleanup Functions

    I’ve previously blogged about how to write error handling.

  4. Smatching an Rsync Bug

    LWN recently had an article about a buffer overflow in Rsync.

  5. Static analysis and style

    I gave a talk at Linaro Connect about static analysis in the kernel.

  6. Sleeping in Atomic Warnings

    TL/DR; Smatch has a warning “warn: sleeping in atomic context”.

  7. return 0 is better than return ret

    There are a lot of people who write “return ret;” when they mean “return 0;” I feel like I’m the person who cares about this the most in the world, but hopefully after reading this blog you will notice it as well and it will annoy you.

  8. When to use == 0

    This is no longer a debate in the Linux kernel, but I saw some code written in out of date style recently and it was a moment of reminiscing.

  9. strcpy strncpy() strlcpy() and strscpy()

    The kernel has a number of strcpy() functions that copy a string from one pointer to another.

  10. Ignore old warnings

    I really believe in static checkers but sometimes static checker advice is wrong and harmful.