The function in Listing 3 frees any memory blocks in the linked list, then frees the Buffer allocated by newBuffer().
清单3 中的函数释放链表中的所有内存块,然后释放由 newBuffer()分配的Buffer 。
This protects against stack, buffer, and function pointer overflows, all without recompilation.
这样将保护程序代码避免堆栈、缓冲区和函数指针溢出,而且全都不需重新编译。
To incrementally append data segments to an abstract buffer, use the following function
要逐步向抽象缓冲区追加数据段,可使用以下函数
In a similar fashion, you can read data segments off segment by segment from an abstract buffer with the following function.
采用类似的方式,您可以使用以下函数,逐段地从抽象缓冲区读取数据段。
The string passed into printk is then copied into the kernel log buffer using a special function that manages the bounds of the ring (emit_log_char).
这个字符串会被传递给printk,然后它会被一个管理缓冲边界(emit_log_char)的特殊函数复制到内核日志缓冲区中。
As a copy from user space, this function first checks that the buffer is readable via access_ok.
由于从用户空间复制,该函数首先使用access_ok检查缓冲区是否可读。
This function returns the size of the value buffer on success and 0 if the name specified is not a valid environment variable name.
如果成功,则此函数返回值缓存的大小,如果指定的名称并不是一个合法的环境变量名,则返回0。
The snprintf function allows you to print safely into a buffer of fixed size.
snprintf函数让您可以安全地输出到固定大小的缓冲区。
An attacker may be able to exploit a buffer overflow by changing the value of other data in the function; none of these approaches counter that.
攻击者也许能够通过改变函数中其他数据的值来利用缓冲区溢出;没有哪种方法能够防止这点。
The strnlen_user function first checks to see that the user buffer is readable through a call to access_ok.
strnlen_user函数首先通过调用access_ok检查用户缓冲区是否可读。
The strnlen_user function is used just like strnlen but assumes that the buffer is available in user space.
strnlen_user函数也能像strnlen 那样使用,但前提是缓冲区在用户空间可用。
You may benefit by implementing a function that returns the number of bytes currently stored in an abstract buffer
实现一个函数来返回当前存储在抽象缓冲区中的字节数目,这样可能会带来好处。
The strncpy_from_user function copies a string from user space into a kernel buffer, given a user space source address and Max length.
strncpy _ from_user函数将一个字符串从用户空间复制到一个内核缓冲区,给定一个用户空间源地址和最大长度。
The Uniq function is declared to take a range, so it will only be called once, even when invoked on a range of lines in the buffer.
Uniq函数被声明为接受一个范围,因此只能调用一次,即使在缓冲区内的一个行范围上调用时。
To a certain extent, it provides the indoor environment with a buffer function, broadens the spatial vision, and amplifies the aesthetic factors in the room.
现代壁饰在某种程度上为室内环境起到了缓冲作用,拓宽了室内的空间视野,增强了居室环境的美感因素。
This paper briefly described the checking balance of buffer batching silo and its function.
简要介绍了玻璃企业配料系统中缓冲仓复核秤及其功能。
For collisional high lying state population, injection of buffer gas will be the key function to high lying state population.
对于主要通过碰撞实现高位能级布居的过程,加入缓冲气体对高位能级布居起关键作用。
If a function needs to maintain the state of some data over successive calls, such as a working buffer or a pointer, the caller should provide this data.
如果函数需要在一系列调用期间维持某些数据的状态,比如工作缓存或指针,那么调用者应该提供此数据。
For the actual buffer processing, the function is perfectly capable of handling zero-sized buffers by simply returning.
对于实际的缓冲区处理,函数只需直接返回,就能够很好地处理大小为零的缓冲区。
This function accepts a pointer to a user space buffer, a pointer to a kernel buffer, and a length defined in bytes.
该函数接受一个指向用户空间缓冲区的指针、一个指向内存缓冲区的指针、以及一个以字节定义的长度。
This function is available everywhere, and you should use it just about all the time; a lot of security holes have been based on buffer overruns in sprintf, and this can protect against them.
这个函数随处可用,而且您应该始终使用它;很多安全漏洞都归咎于sprintf中的缓冲区溢出,而这个函数可以预防这个问题。
Send function takes packets from application layer into sending buffer, and the receive function takes data from receiving buffer for the application layer.
发送函数将应用层数据包放入发送缓冲区,接收函数从接收缓冲区取得数据包。
In Listing 2, the function allocates a piece of memory containing a buffer and initializes its entries to indicate an empty abstract buffer.
在清单2中,该函数分配了包含一个Buffer的内存块,并初始化它的条目以指明它是一个空抽象缓冲区。
This paper constructs the function simulation platform for buffer manager and the whole system, and validates the design on the platform after the RTL design.
在完成该单元的RTL级设计的基础上,进一步构建了该单元及整个系统的功能仿真平台,在该平台上验证了设计的正确性。
The strnlen_user function takes two arguments: the user space buffer address and the maximum length to check.
strnlen_user函数带有两个参数:用户空间缓冲区地址和要检查的最大长度。
The readfile function dumps the entire contents of a file or Web page to the default output buffer.
readfile 函数将把文件或Web页面的全部内容转储到默认的输出缓冲区。
Far more importantly, however, the function does only one-third as many buffer accesses, and the code is much clearer and more maintainable.
不过,更重要的是该函数的缓存访问量只有原来的三分之一,并且代码更加简洁,更加易于维护。
Similar to the pagination function found for the wml variant, the pagination variant is used by html-type devices with limited buffer space.
与所发现的wml 变量的分页功能类似,pagination 变量用于缓冲空间有限的 html 类型设备。
The Reserve has divided three function areas, namely core, buffer and experimental area.
保护区划分了三个功能区,即核心区、缓冲区和实验区。
The Reserve has divided three function areas, namely core, buffer and experimental area.
保护区划分了三个功能区,即核心区、缓冲区和实验区。
应用推荐