• Dag Haavi Finstad's avatar
    Redo struct h2_sess allocation/workspace snapshot · ec0f8199
    Dag Haavi Finstad authored
    Instead of allocating struct h2_sess out of the same workspace that is
    used as our rxbuffer, we rather keep it on the stack in h2_new_session.
    
    If the size of the initial h/2 request payload is close to half the size
    of the workspace, we would end up exhausting the workspace in HTC_RxInit
    after allocating our h2sess struct.
    
    Spotted by Federico G. Schwindt
    
    Fixes: #2619
    ec0f8199
cache_http2_session.c 11.5 KB