mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
Filter out all symbols starting with a double underbar. In particular,
this filters out all retguard symbols, which are no fun to guess. One recognizes them easily but can get yourself hanged by a single digit! An earlier version filtering only __retguard symbols was ok deraadt, jsing guenther agreed that filtering all double underbar symbols makes sense. He also suggested to filter out symbols containing several consecutive digits, but how much fun is guessing libcrypto symbols without all the X509 goodness?
This commit is contained in:
parent
12854997a4
commit
b5a76aaea7
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ksyms.c,v 1.12 2019/06/28 13:32:52 deraadt Exp $ */
|
||||
/* $OpenBSD: ksyms.c,v 1.13 2021/12/24 23:01:56 tb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Miodrag Vallat.
|
||||
@ -70,6 +70,9 @@ sym_getword(void)
|
||||
/* ignore symbols containing dots or dollar signs */
|
||||
if (strchr(sym, '.') != NULL || strchr(sym, '$') != NULL)
|
||||
continue;
|
||||
/* ignore all double unberbar symbols */
|
||||
if (strncmp(sym, "__", 2) == 0)
|
||||
continue;
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user