Skip to content

Instantly share code, notes, and snippets.

View b12mihai's full-sized avatar

Barbulescu Mihai b12mihai

  • Universitatea Politehnica Bucuresti
  • Bucuresti
View GitHub Profile
##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
# management frames with the Host AP driver); wlan0 with many nl80211 drivers
# Note: This attribute can be overridden by the values supplied with the '-i'
# command line parameter.
interface=wlp2s0
# In case of atheros and nl80211 driver interfaces, an additional
mihai@ryzen:~/facultate/so/scratch$ cat some_random_malloc.c
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>int main()
{
uint8_t* addr;
addr = malloc(5);
/* if (addr == NULL) {
printf("malloc fails!!!!!\n");