Beispiel #1
0
int main(void)
{
    //not initialized and not used variable
    int i;
    int k;

    int* p_to_nirvana = 0;

    int counter = 0;

    printf("[%s] hello\n", __func__);


    printf(" > enter...\n");
    for(;;)
    {
        ;;;
        counter++;
//         printf("counter %d\n", counter);
        if (counter > 100000)
            break;
    }

    disaster(p_to_nirvana, 0);
    disaster(p_to_nirvana, 0);
    disaster(p_to_nirvana, 0);

    printf(" > exit...\n");
    return 0;

}
Beispiel #2
0
static void ini_objects(void)
{
    grf_std = GrLoadFont("lucb21.fnt");
    if (grf_std == NULL) {
	grf_std = GrLoadFont("../fonts/lucb21.fnt");
	if (grf_std == NULL)
	    disaster("lucb21.fnt not found");
    }

    grf_big = GrLoadFont("lucb40.fnt");
    if (grf_big == NULL) {
	grf_big = GrLoadFont("../fonts/lucb40.fnt");
	if (grf_big == NULL)
	    disaster("lucb40.fnt not found");
    }

    grt_centered.txo_bgcolor.v = GrNOCOLOR;
    grt_centered.txo_direct = GR_TEXT_RIGHT;
    grt_centered.txo_xalign = GR_ALIGN_CENTER;
    grt_centered.txo_yalign = GR_ALIGN_CENTER;
    grt_centered.txo_chrtype = GR_BYTE_TEXT;

    grt_left.txo_bgcolor.v = GrNOCOLOR;
    grt_left.txo_direct = GR_TEXT_RIGHT;
    grt_left.txo_xalign = GR_ALIGN_LEFT;
    grt_left.txo_yalign = GR_ALIGN_CENTER;
    grt_left.txo_chrtype = GR_BYTE_TEXT;
}
Beispiel #3
0
/*
 * Catch a SIGSYS signal.
 *
 * These may arise if a system does not support sysctl.
 * We tolerate up to 25 of these, then throw in the towel.
 */
static void
badsys(int sig)
{
	static int badcount = 0;

	if (badcount++ < 25)
		return;
	disaster(sig);
}
Beispiel #4
0
int
unlock_map(char *mapname)
{
	disaster();
	return (0);
}
Beispiel #5
0
int
validstr(char *str, size_t size)
{
	disaster();
	return (0);
}
Beispiel #6
0
int
unlock_core(int hashval)
{
	disaster();
	return (0);
}
Beispiel #7
0
bool_t
validloginshell(char *sh, char *arg, int priv)
{
	disaster();
	return (0);
}
Beispiel #8
0
bool
delete_map(char *name)
{
	disaster();
	return (FALSE);
}
Beispiel #9
0
bool
rename_map(char *from, char *to, bool_t secure_map)
{
	disaster();
	return (FALSE);
}
Beispiel #10
0
int
hash(char *s)
{
	disaster();
	return (0);
}
Beispiel #11
0
bool
init_lock_map()
{
	disaster();
	return (FALSE);
}