cc: dereference NULL pointer inside switch brackets and no exception

2018-09-04 Thread Denis Buga
> As far as I know, since there is no explicit cases in the switch > statement, the value is not used at all, and the compiler never generates code to dereference the pointer. ... That is true. Thank you all for answers and for link.

cc: dereference NULL pointer inside switch brackets and no exception

2018-09-03 Thread Denis Buga
int main() { char * ptr = NULL; switch( *ptr ) { default: fprintf(stderr, "where is exception ? default label exist for" "exclusive value, not for non-existent ! " "it can be security issue, when dereferencing NULL " "in switch formally pass and we go to default label\n"); } } No ? 6.3

sndiod internals

2018-06-22 Thread Denis Buga
sorry for bad english if simplify, seems like we have three pairs of concepts, while in audio path from file to card file (Hz/bit), sndiod (Hz/bit), card (Hz/bit) first and third is more or less i understand by second i mean sndiod's "dsp" i understand, that, when i set up "sndiod_flags" with