Project

General

Profile

Actions

Bug #7670

closed

Instrumentation of memory allocation functions from driver code should correctly pass size of memory

Added by Vadim Mutilin about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
Requirement specifications
Target version:
Start date:
11/01/2016
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

Now function allocations with known size like kmalloc are replaced with ldv_malloc_unknown_size.
Thus size parameter is lost.

See for example aspect

around: ALLOC_KNOWN_SIZE
{
        void *res;
        ldv_check_alloc_flags(flags);
        res = ldv_malloc_unknown_size();
        ldv_after_alloc(res);
        return res;
}

In correct case ldv_malloc(size) should be called.


Related issues 2 (1 open1 closed)

Related to Klever - Feature #7481: Try to use memory allocating function models by defaultNewEvgeny Novikov08/17/2016

Actions
Related to Klever - Feature #7971: Rule specification generic:memory lacks test casesClosedAnton Vasilyev02/13/2017

Actions
Actions

Also available in: Atom PDF