• Cedric Roux's avatar
    rfsim: add a check on 'sock' · 42539b0b
    Cedric Roux authored
    It is very possible that the operating system returns a file
    descriptor bigger than the size of bridge->buf (MAX_FD_RFSIMU, which
    is 250 as of now). As a minimum, let's fail if the socket file
    descriptor is out of bounds.
    
    A proper solution may be implemented later, if needed.
    42539b0b
simulator.c 40.1 KB