Questions tagged [patch]

A patch is a piece of software designed to fix problems with, or update a computer program or its supporting data. This includes fixing security vulnerabilities and other bugs, and improving the usability or performance.

Programmers publish and apply patches in various forms. Because proprietary software authors withhold their source code, their patches are distributed as binary executables instead of source. This type of patch modifies the program executable—the program the user actually runs—either by modifying the binary file to include the fixes or by completely replacing it.

Patches can also circulate in the form of source code modifications. In these cases, the patches consist of textual differences between two source code files. These types of patches commonly come out of open source projects. In these cases, developers expect users to compile the new or changed files themselves.

Because the word "patch" carries the connotation of a small fix, large fixes may use different nomenclature. Bulky patches or patches that significantly change a program may circulate as "service packs" or as "software updates". Microsoft Windows NT and its successors (including Windows 2000, Windows XP, and later versions) use the "service pack" terminology.

In several Unix-like systems, particularly Linux, updates between releases are delivered as new software packages. These updates are in the same format as the original installation so they can be used either to update an existing package in-place (effectively patching) or be used directly for new installations.

2809 questions
1
vote
1 answer

python3 mock doesn't work for all paths

The Production file (production_file.py) is: class MyError(Exception): pass class MyClass: def __init__(self): self.value = None def set_value(self, value): self.value = value def foo(self): raise…
Feoggou
  • 149
  • 3
  • 11
1
vote
1 answer

Is it possible to modify the value of a char* in .rodata section of an elf?

I know you can easily patch the ELF with a value of the same size. But, what if I want to change it for a bigger value? Is there a way to un-pack and re-pack the ELF? I'm not interested in patching the binary in memory.
gipsh
  • 578
  • 1
  • 3
  • 20
1
vote
2 answers

http module (of node.js with browserify) doesn't write request body with method PATCH

I've been developing a web client to interact with a REST API server, and would like to use PATCH method. Although I've tried to write a request body into PATCH's request, I found the body remains empty. PUT or POST works fine in the same way…
tsuda7
  • 413
  • 1
  • 6
  • 25
1
vote
0 answers

Checkout not working in Magento 1.9.1.1 after installed patches

After I have installed the following patches: SUPEE-6285-1.9.1v2, SUPEE-6482-1.9.1.1, SUPEE-6788-1.9.1.1, SUPEE-7405-1.9.1.1, my website's onepage checkout payment is not working. Entered debit Card/Credit Card details in onepage checkout and then…
user6036056
  • 33
  • 1
  • 8
1
vote
1 answer

NetLogo, accessing color of a patch

I am trying to apply the following condition: if ( the color of patch -2 -1 is red ) [ some commands ] Could someone please tell me how to write this in NetLogo?
user399466
  • 117
  • 4
  • 10
1
vote
1 answer

NetLogo Histogram - Distribution of visits

I've a simple problem. In my code there are some patches that contain food. I computed the # of visits for each one of these "resources". Now I want to put in a histogram the # of visits for each one of these "resource-patches" . If I write in the…
1
vote
2 answers

How to mock a singleton class method

Suppose we have the following structure: class A(): class __A(): def __to_be_mocked(self): #something here def __init__(self): with A.lock: if not A.instance: A.instance = A.__A() …
vks
  • 67,027
  • 10
  • 91
  • 124
1
vote
0 answers

How apply patch to Zookeeper

How apply a patch to zookeeper? I have this error. this patch https://issues.apache.org/jira/browse/ZOOKEEPER-1936 Thanks
SirGustave
  • 342
  • 1
  • 2
  • 13
1
vote
1 answer

Netlogo model is extremely slow and has a delay between each tick

The model that i have created is very slow. I am a beginner in Netlogo and not sure if my code is inefficient or my system configuration is the problem. I have a 35 x 35 grid and most of my operations are patch based i.e. each patch has to find the…
Raj
  • 1,049
  • 3
  • 16
  • 30
1
vote
1 answer

Is it possible to restore a git history to a copied and modified tree?

One of my coworkers created a new git repository the "wrong" way, by copying the tree, deleting the .git directory, and doing a new git init. The coworker then dramatically slimmed down the repository, removing a bunch of files and renaming others…
Translunar
  • 3,739
  • 33
  • 55
1
vote
1 answer

Unable to apply patch with nested directories

I am trying to create simple patch but file is in different directory. My Directory structure is: /-|hello_new.c |-1/-| |-2/-| |-3/hello.c //hello_new.c: #include int main(int argc, char *argv[]) { …
RootPhoenix
  • 1,626
  • 1
  • 22
  • 40
1
vote
1 answer

How to achieve adobe all updates from adobe server?

Currently I am working with WSUS and getting all Microsoft patches from server. Similar way how I can achieve all the updates(patches) from adobe ? Is it any option with WSUS to get all 3 rd party updates (Non-Microsoft, included all adobe…
Arun Ragam
  • 21
  • 4
1
vote
1 answer

PHP - application patch build

I'm trying to come up with a better solution for our development group to build patches for our applications (PHP). We currently submit to SVN daily, but do not run a continuous integration server, as code checked in can be buggy. For building…
user258082
1
vote
1 answer

to draw sphere using patch in matlab, is it possible?

i'd like to draw sphere using 'patch' function in Matlab. in function 'patch' "vertex=[~~]" in this part, how to choice the point... And i wonder if possible to draw sphere using 'patch function'.. please help!
jeong
  • 13
  • 2
1
vote
2 answers

How to Update the installed Window Application (Creating Patches)

i have requirement. i have created the window application and i have created the setup of that application that has been installed to client machine. Now the requirement is that if i will do the further modification to the project the client not…
Shivi
  • 1,075
  • 9
  • 24
  • 42