Details

[Home]

Issue of the Standard # S0313

Brief

mvcur() of ncurses does not follow the SuSv2 specification

Detailed Description

LSB 3.1 refers SUSv2 regarding specification of the mvcur() function of the ncurses library, which reads: "If (newrow,newcol) is not a valid address for the terminal in use, mvcur() fails."

But mvcur() of ncurses does not return error when it is called with big parameters (-1000000, -1000000), (10000000, 10000000).

#include 
#include 

int main(int argc, char* argv[]) 
{ 
    int res;
        
    initscr(); 

    move(LINES/2, COLS/2); 
    res = mvcur(LINES/2, COLS/2, 10000000, 10000000); 

    endwin();       
    
    printf("mvcur() returned %d (expected: %d)\n", res, ERR); 

    return 0; 
} 

Problem location(s) in the standard

Linux Standard Base Core Specification 3.1, Chapter 14. Utility Libraries, 14.5. Interfaces for libncurses.

Accepted

LSB Bugzilla, 1642

Status

Fixed in LSB 4.0

[Home]