Project

General

Profile

Actions

Bug #1448

closed

Rand doesn't have arguments specified in a header

Added by Roman L. over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
libcrystax
Target version:
Start date:
07/20/2016
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm64
Host OS:
Linux
Toolchain:
gcc-6
Android version:
5.1 (android-22)
CrystaX NDK Version:

Description

crystax/sys/stdlib.h header has

int  rand();

instead of

int  rand(void);

that results in that rand function can be redefined with any other arguments list. Finally this leads to a failed configuration of libcurl ("compiler does not halt on function prototype mismatch."), as it uses rand function for a check.

Actions #1

Updated by Dmitry M. over 7 years ago

  • Description updated (diff)
  • Assignee set to Dmitry M.
Actions #2

Updated by Dmitry M. over 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF