Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cremno
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
151.
▲
Why did the original code for FIND.COM use lop as a label instead of loop?
(blogs.msdn.com)
22 points
by
cremno
12y ago
|
6 comments
152.
▲
by
cremno
12y ago
From the exploit code: memset(&serv_addr, '0', sizeof(serv_addr)); That doesn't seem to be correct. The digit character 0 is not the same as the null character ('\0'). Just write 0 or use `struct sockad
153.
▲
32-bit x86 Position Independent Code – It's That Bad
(ewontfix.com)
136 points
by
cremno
12y ago
|
102 comments
154.
▲
by
cremno
12y ago
I don't think so. There are some other mails (like https://marc.info/?l=openbsd-misc&m=142563704303304&w=2 ), but I also think now I should've used a different quote.
155.
▲
by
cremno
12y ago
Theo de Raadt, one month ago (not the only and first mail in this (derailed) thread though): >A review of libsqlite source code will demonstrate that it is written >using many old practices of coping with "older systems". M
156.
▲
by
cremno
12y ago
I agree, but I don't think mentioning such an exception is a good idea. That's basically the same reason why gets() is part of ISO C90 and C99. Just call snprintf() even in such cases and forget about sprintf(). From http:/&
157.
▲
Reconstructing Some Source of Microsoft BASIC for 8080
(pagetable.com)
4 points
by
cremno
12y ago
|
0 comments
158.
▲
by
cremno
12y ago
>Submitted on September 19, 2008 But that doesn't matter that much since it was originally posted on 4chan and not DA.
159.
▲
by
cremno
12y ago
You're thinking about a different comic: http://www.ebaumsworld.com/pictures/view/80430987/ The original can be found on the linked site, but it's also on DA: http://whynne.deviantart.com
160.
▲
by
cremno
12y ago
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.... https://plus.google.com/+LinusTorvalds/posts/TvigQqA9m3w
161.
▲
by
cremno
12y ago
>Windows Threshold That was just a codename. Vista and XP (and ME?) are actual examples.
162.
▲
by
cremno
12y ago
The announcement: https://lkml.org/lkml/2015/4/12/178
163.
▲
by
cremno
12y ago
Windows 8 comes with a basic PDF reader: http://windows.microsoft.com/en-us/windows-8/reader-app-faq
164.
▲
by
cremno
12y ago
That isn't strange. From the linked page: >But this technique works only so long as the containing function (hack, in this example) does not exit.
165.
▲
by
cremno
12y ago
Not really true (this is about C's predecessor B): Thompson went a step further by inventing the ++ and -- operators, which increment or decrement; their prefix or postfix position determines whether the alteration occurs before or aft
166.
▲
by
cremno
12y ago
They can be found here: https://support.google.com/groups/answer/6003482
167.
▲
by
cremno
12y ago
There also some tools I think should be added: I'm not sure if linking to AddressSanitizer is okay (as its (an underused) part of Clang and GCC), but I consider include-what-you-use, unifdef, and maybe C++ Compiler Explorer a worthwhil
168.
▲
by
cremno
12y ago
It's a bit off-topic, but is there a reason to still use the original MinGW and not MinGW-w64? The list only mentions the original one. I also didn't know that GNU refers to the MIT license as Expat license. The list also links to
169.
▲
by
cremno
12y ago
The full sentence is: >MRI executes Ruby via an interpreted stack-machine bytecode language known as YARV (Yet Another Ruby VM) bytecode. So YARV is a Ruby VM that has instructions and bytecode. Are you still confused?
170.
▲
Joke GitHub DICSS project goes nuts
(uk.businessinsider.com)
10 points
by
cremno
12y ago
|
2 comments
171.
▲
by
cremno
12y ago
The commit that fixes CVE-2015-0291: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h...
172.
▲
by
cremno
12y ago
Just the slides do. Maybe he later thought the same and then omitted or replaced that suggestion in his talk. https://www.youtube.com/watch?v=csyL9EC0S0c&t=393
173.
▲
iNFekt NFO Viewer
(infekt.ws)
1 points
by
cremno
12y ago
|
0 comments
174.
▲
by
cremno
12y ago
>server_socket_getport I found this interesting article: http://daniel.haxx.se/blog/2014/10/25/pretending-port-zero-i... So since 0 can be okay and (in_port_t)-1 (=65535) is okay, it has to be changed
175.
▲
by
cremno
12y ago
>using both 0 and -1 to indicate error returns from functions I couldn't find any function that returns 0 on failure. Or do you mean a null pointer? >The stack should not be used to allocate buffers intended to hold data written
176.
▲
by
cremno
12y ago
Can you link to specific examples? I'm currently not taking your word for it. The file has comments. Maybe too few and too terse for you, but that isn't what you've said. Yes, some buffers are stack-allocated, but what's
177.
▲
by
cremno
12y ago
http://www.notjustatheory.com/
178.
▲
by
cremno
12y ago
https://github.com/bbatsov/rubocop/wiki/Automatic-Correction...
179.
▲
by
cremno
12y ago
Disliking omitting braces or really short names is just a matter of taste (however both is classic C coding style), but you can easily find out what they store without comments or a longer name. I personally would have chosen l instead of x
180.
▲
by
cremno
12y ago
What are your issues with it? That the variable names are not descriptive enough to be understood when the code is taken out of context? That the if-substatements aren't compound statements? The last line? What would you have done inst
More ›