senozhatsky

Joined 11 years ago

Karma
165
Submissions
76
Member since
Apr 10
Linux kernel developer. Japan.
View on Hacker News

Recent submissions

Comment · 1 year ago
Comment · 2 years ago
I wish they offered a paid version of the browser that would have ublock enabled.
Comment · 2 years ago
> meaning no local variables (still heavy usage of push/pop within a procedure, does this count as a local?)

Isn't it (push/pop) how locals basically work?

Comment · 6 years ago
Comment · 6 years ago
OK, understood. So what you meant was more like

   puts()'s attack surface is smaller than printf()'s.
This is not how your message appeared to me - "printf() is vulnerable to injections, use puts() instead". Both are vulnerable to "unintended read()-s".
Comment · 6 years ago
Looks even better!
Comment · 6 years ago
Good point. I suppose that you are talking about overwriting terminating NUL, do I get it right? puts() is vulnurable in exactly same way.
Comment · 6 years ago
> No. You don't really want to do that. If you're doing that, use puts

This is not the case for RO strings, is it?

Comment · 6 years ago
I see. So when for a char pointer one needs to do

        printf("%p\n", v);
the Generic call must look like this

        displayln((const void *)v);
is it really better?
Comment · 6 years ago
Could be. But wouldn't then displayln() require the same string placeholder? Be it "%s", or "{1}" or someting else.
Comment · 6 years ago

   > printf("%s\n", "Hello, World!");
   >
   > That's an awful lot of symbolic syntax.
Well... Because it should have been

    printf("Hello, World!\n");
in the first place?

One can do something like

    printf("%s,%s%c\n", "Hello", "World", '!');
and claim that C is awful and that

    displayln("Hello, World!");
is so much better.
Comment · 7 years ago
I think Hyundai/Kia had self driving systems in development for the past, what, 5 years? Kia debuted its DriveWise in 2016. So they don't start from scratch.
Comment · 7 years ago
I pretend that '-s' stands for "source", not "symbolic"; and source file follows -s(ource) option. IOW `ln -s A B' is `link source A to B'.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton