Method and apparatus for buffer initialization
AssigneeNokia Corporation
InventorsEero Aho, Tomi Aarnio, Kimmo Kuusilinna
Life of this patent
Estimating the term…
Abstract
A method, apparatus and computer program product are provided herein to enable buffer initialization and/or clearance to occur on, for example, a mobile terminal. In some example embodiments, a method is provided that comprises receiving an indication that a buffer has been initialized by a host. The method of this embodiment may also include receiving source code from the host. In some example embodiments, the source code is received from a program running on the host and is configured to cause the buffer that has been initialized by the host to be cleared. The method of this embodiment may also include executing the source code such that the buffer that has been initialized by the host is cleared.
Claims20
A method comprising:
- receiving an indication that a buffer has been initialized by a host;
- determining a buffer size, wherein the buffer size is configurable to be less than the size of the buffer initialized by the host;
- receiving from a server, remote from the host, source code for execution on the host, wherein the source code is generated by a program accessed via the host, and wherein the source code is configured, upon execution, to cause at least a portion of the buffer, in accordance with the buffer size, that has been initialized by the host to be cleared;
- and
- executing, using a processor, the source code such that at least a portion of the buffer that has been initialized by the host is cleared, wherein in an instance in which the buffer is cleared, the program is unable to access any pre-existing information in the buffer.
An apparatus comprising:
- at least one processor;
- and
- at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to at least:
- receive an indication that a buffer has been initialized by a host;
- determine a buffer size, wherein the buffer size is configurable to be less than the size of the buffer initialized by the host:
- receive from a server, remote from the host, source code for execution on the host, wherein the source code is generated by a program accessed via the host, and wherein the source code is configured, upon execution, to cause at least a portion of the buffer, in accordance with the buffer size, that has been initialized by the host to be cleared;
- and
- execute the source code such that at least a portion of the buffer that has been initialized by the host is cleared, wherein in an instance in which the buffer is cleared, the program is unable to access any pre-existing information in the buffer.
A method comprising:
- generating, using a processor, source code configured for operation on a compute device, wherein the source code comprises one or more arguments to be set;
- causing a buffer to be initialized in the compute device;
- and
- causing the source code to be transmitted to the compute device, wherein the source code is configured to cause the buffer to be cleared.
Dependencies are inferred from the claim text.